Data Pills below Array.Object are disabled (grayed out)

Brian15
Tera Guru

In Flow Designer I added the ootb Workday HR spoke action called "Look up Location Details" to a subflow.  When I try to log data returned from the action the problem is that the last selectable level in the picker occurs when the data type is array.object.  All further levels are grayed out.  

find_real_file.png

The data I want is a sting occurring after the array, (like Latitude in the image).  How can I log "Latitude" for instance since it is currently disabled? 

Thanks Everyone,

Brian 

1 ACCEPTED SOLUTION

Hi Brain,

 

The output elements names are case sensitive. Ex location_data vs Location_Data.

Check the output by execution the action via flow api in Bg script.

Use below script,

return fd_data._2__look_up_location_details.location.Location_Data["Latitude"];
 
Regards,
Suraj

 

View solution in original post

4 REPLIES 4

surajp
Mega Guru
Hi Brian, This is a platform issue, use inline script to access any such greyed objects.

Thanks for the response! 

 Can you be a little more specific?  I get the following results from these inline script attempts:

1.  Version 1 - result: location object returned

var location = fd_data._1__look_up_location_details.location
return location

{Location_Data={Integration_ID_Data={WD_WID=c705db17b0571037776c9bd6a2d66050, WD_I=216$1}, Location_Name=Test, Time_Profile_Reference={Time_ProfileDescription=Standard Hours - 40, Time_Profile_ID=Standard_Hours_40}, LocationID=Test...

 

2. Version 2 - result: nothing was returned when I dot walked past location 

var lattitude = fd_data._1__look_up_location_details.location.location_data.lattitude
return lattitude

 

3. Version 3 - results: not helpful

var location = fd_data._1__look_up_location_details.location.toString().split(',');
return location

 {"value":{"index":0,"co":["[object Object]"],"count":0,"skipped":0,"useArray":true},"displayValue":"[object Object]","inputUsed":false}

 

Thanks again,

Brian 

Hi Brain,

 

The output elements names are case sensitive. Ex location_data vs Location_Data.

Check the output by execution the action via flow api in Bg script.

Use below script,

return fd_data._2__look_up_location_details.location.Location_Data["Latitude"];
 
Regards,
Suraj

 

Brian15
Tera Guru

Thank you Suraj!  That worked perfectly!