top of page

Just enough licensing flow with Power Automate


Following up my earlier post to take the Teams Phonenumber automation to the next level, one customer had Crayon as the Subscription licensee provider and they offer API access  to deal with Subscription so I hooked that up to power automate.

this is an article to demonstrate what I had to do to get automatic licenses on demand through the Crayon Cloud IQ

The first part is the Authentication as listed here

You need an API User with a secret and a regular user account+password the same one used to access the QloudiQ portal.

The API user is created through the CloudiQ portal through API management.

First lets create the variables for the passwords and user ids

Create the Get token HTTP request as the documentation requires


Next we parse the output using parse JSON to get the token from the previous HTTP request, you can use the body to generate the schema


Body generated from sample

“type”: “object”,

“properties”: {

“AccessToken”: {

“type”: “string”

},

“IdentityToken”: {},

“Error”: {},

“ExpiresIn”: {

“type”: “integer”

},

“TokenType”: {

“type”: “string”

},

“RefreshToken”: {}

}

}

Then we get the subscription ID of the license we want to update.

as instructed here

and use Parse JSON again then we can get the license Quantity

and more info about that license group

Next, we run the Update Subscription HTTP Request to order more licenses



And now we can increase the license count quantity by one on-demand,

then I can call  this within my other flows, like that one I talked about  in an earlier Article

Hope this helps anyone else, please feel free to send me a line or any questions if there are any through any of the social media listed at the top.

Comments


8523139

Subscribe Form / Gerast Áskrifandi

Thanks for submitting!

©2023 by Flowmar. Proudly created with Wix.com

bottom of page