# How to transfer external parameter in to yeeflow

**URL:** <https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210>\
**Category:** Ask the community\
**Created:** [September 27, 2023, 10:37am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210 "2023-09-27T10:37:41Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [September 27, 2023, 10:37am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/1 "2023-09-27T10:37:41Z")

</div>

Hi,

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.

 ![01](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/99d97e0952ff803a51186d3fca9e5376ea6c5bc1.png)  
 ![03](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/78433792942bf1ef56216bd88765487b2127836f.png)  
 ![04](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/188c7eef83bb1e02639c96382b98ba9e5a183fe0.png)  
 ![02](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/2fb947d5acd1e8121936a29bd16cf711461a61e0.png)

thanks!

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [September 28, 2023, 7:15am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/2 "2023-09-28T07:15:11Z")

</div>

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:  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/fec02c751897232b92302383807ffb6e0754fe91.png)

Or save Object attributes to a plain variable (text, number, etc)

![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/20c2383117899479dcc62112a21ec58243449175.png)

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [September 28, 2023, 8:44am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/3 "2023-09-28T08:44:39Z")

</div>

Thanks Frank,

I saw, whether the response data had to be in this format （ {DeviceType: “”, Model: “”, DeviceName:“”}），it could be indentified by yeeflow?

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [September 28, 2023, 9:03am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/4 "2023-09-28T09:03:05Z")

</div>

No, it’s only an example. The attribute name should match with the ID of the varaible.

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [September 28, 2023, 9:19am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/5 "2023-09-28T09:19:37Z")

</div>

e.g. my response data format as below, so my variable ID ( field ID ) must same with red line in the picture as below?

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/67a0c3e9f70a8cba46c9dafb4efd07948f52b810.png)

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [September 28, 2023, 10:06am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/6 "2023-09-28T10:06:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 5, 2023, 4:31am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/7 "2023-10-05T04:31:50Z")

</div>

Hi Frank,  
After testing, it is found that the correct variable value can be obtained when the return value is as follows.

 ![001](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/6dccce40cf6ffd80b806fcd103966c6d151dc7d2.png)  
 ![002](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/cbf2240c40f84f5a0239c1cb953ff32a6f037450.png)  
 ![003](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/7db33a88de8a167c3b3f42a867e72762ca354e9b.png)

But in fact, the return value is in the following format ( Array & object), please ask how to set.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/ab4b1ef9728dd846e3258ff3ee82cade45ff6366.png)

{  
“assets”:[  
{  
“asset\_tag”:“AssetTag123456789”,  
“product”:{  
“name”:“HP5000”  
},  
“product\_type”:{  
“internal\_name”:“Workstation”  
},  
“name”:“CNDG2IT60XYZAA”,  
“user”:{  
“name”:“demo”  
}  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 7, 2023, 2:45am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/8 "2023-10-07T02:45:35Z")

</div>

Additional: I want to get “AssetTag123456789”, “HP5000”, “Workstation”, “demo” and set them to variable value. Thanks!

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 7, 2023, 3:07am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/9 "2023-10-07T03:07:49Z")

</div>

Hi Johnny, your scenario is a little bit tricky. The attribute in assets array is an Object instead of plain text. e.g. Product name:

“product”:{  
“name”:“HP5000”  
}

Here’s an idea to take care this scenario:

1. Define a variable with definition to hold the HTTP response:  
ID/Name  
assets/Assets

2. Define a variable to hold the Asset list with definition:  
ID/Name  
asset\_tag/TAG  
product/ProductObj  
productName/Product Name

3. You need to have a task form which have a Sub list to parse the Product Name from ProductObj.  

![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/09616b030f19a0a36367d25b3d9ad629ea53db01.png)

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.

1. In workflow, use Set Variable action to assign the assets Array from HTTP response to Assets List.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/d3effab5d5c01d3ecd9480513588487598c0cb1a.png)

I have created a simple sample workflow for you as a reference.

You can get the workflow definition from [here](https://github.com/lulut/Samples/blob/main/ywf-complex%20data%20processing%20sample.zip).

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 7, 2023, 5:19am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/10 "2023-10-07T05:19:11Z")

</div>

Thanks Frank, and How can I import your sample file? It seems that can only import .yap files.

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 7, 2023, 6:44am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/11 "2023-10-07T06:44:58Z")

</div>

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.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/ce479dcf8ab19c98ce38df4e84df7bf7e14509a4.png)

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 8, 2023, 10:05am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/12 "2023-10-08T10:05:53Z")

</div>

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.

 ![02](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/5bba4c0985bbca96cf42016de8885cf599af1a59.png)

 ![00](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/33ac66fa4f2315466caed4f6676789992e66ed43.png)  
 ![01](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/e5258249321327d37ef0dbbbdd34916b973c205b.png)  
 ![row1](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/15d5c19fea1cab12763f3c74c4ecbfe3696fd469.png)  
 ![row100](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/89dc85177c3c3964295498f5d0d52df6f207fa4c.png)

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 9, 2023, 1:43am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/13 "2023-10-09T01:43:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 9, 2023, 1:48am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/14 "2023-10-09T01:48:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 9, 2023, 2:13am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/15 "2023-10-09T02:13:11Z")

</div>

Hi Johnny, you may need to check whether the parameters of HTTP Request has been set correctly.

---

<div class="post-metadata">

**Author:** ![johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@johnny](https://community.yeeflow.com/u/johnny)\
**Post date:** [October 9, 2023, 2:33am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/16 "2023-10-09T02:33:29Z")

</div>

Hi Frank, I checked my code and parameters, it is correct. please kindly see capture below.  
thanks!

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/4dc43c727e0986ba1c4a09260f417489ccf0bbdf.png)  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/8cc83fa15e6949ff45606a006fd8714bc124921f.png)  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/8c7a5e0b355f8829b78c74ea31620fe67e6e58c6.png)

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 9, 2023, 2:39am UTC](https://community.yeeflow.com/t/how-to-transfer-external-parameter-in-to-yeeflow/210/17 "2023-10-09T02:39:55Z")

</div>

Hi Johnny, this requires a more detailed investigation, could you please send me the tenant Account ID with tracking no to [frank@yeeflow.com](mailto:frank@yeeflow.com).
