I’m working on a process for staff offboarding, and I want to call data from a asset management system.
I get the parameter as below, but I don’t know how to transfer parameter to variable in yeeflow.
I store the data in a dictionary type variable, but I don’t know how to save the contents to different variables and then use them to update my data list.
Hi Johnny, suggest you have response from HTTP API in the following format:
{DeviceType: “”, Model: “”, DeviceName:“”}
You can save the HTTP response to a dictionary variable, e.g. RS
And then, using it in form:
Or save Object attributes to a plain variable (text, number, etc)
The root level property name is assets. You should have assets in your complex type definition. And then assign the value of assets to a list variable. “total_cost” is the property in def of list variable.
And remember don’t set the Sub List to readonly. Instead, you can disable Add Item and Delete Item of the Sub List and set readonly on specific columns.
In workflow, use Set Variable action to assign the assets Array from HTTP response to Assets List.
Hi Johnny, unzip the file you will get complexdata.ywf. You can use it in Admin Center/Workflow settings/Workflow definitions. Use “Import From Template” to overwrite any existing workflow by this file.
Hi Frank, thanks for your help. it was successful to get the value from API.
Whether it has a limit, can only get 10 records at a time? As below, my code is correct on test webpage.
When I use the same code in yeeflow it only can get 10 records and no matter how I set the “start_index” parameter, the record I get doesn’t any change, they were the same items every time.
Hi Johnny, the row_count should be the parameter defines how many items to be returned. start_index indicates the start point of the items. You may consider to increase row_count or retrieve all data in a loop.
yes, I understand what the row_count and start_index mean.
What I mean is that no matter how I change the value of these two parameters, it always returns 10 terms and always the same terms.
But you can see pictures above, I can get the all terms in test website by the same code.