cancel
Showing results for 
Search instead for 
Did you mean: 

Getting data field from Action response using Decision Function in SBPA

edna101
Explorer
0 Kudos

Hello all, after many attempts over some days I decided to reach out and ask for your help.

Using the Action project I have been able to retrieve data from our user management API spec and the response is like in picture below.

However I am unable to retrieve all content of the response array email field.

I was able to retrieve only the first email abc@gmail.com using decision table, however, my aim is to retrieve all the email from the array as they are email from user management API and all these email needs to get a notification.

I attempted using decision append function, update, foreach loop function but all to no avail. I get no output.

What I want to achieve is getting all the email address from the response array [abc@gmail.com, xyz@gmail.com, 123@gmail.com] and send a notification to them.

I look forward to all the help i can get to this task i am faced with.

 

Thank you

View Entire Topic
Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @edna101 , 

Hope the question is still open.

Based on your example, this is not possible currently in BPA. Once the expression editor or script editor is available, then you can write a small code to extract the string values in an array. For now, you can use Custom Script in Automation activity to form such an array. Also if the API supports, then try and filter to get only Email in the response and map that to the recipients field of the Form. 

Regards,
Archana

edna101
Explorer
0 Kudos

Hi Archana, this question is still very open. Thank you for responding. What the possibility of configuring a script tasks in BAS as workflow module and passing it into BPA. I attempted this, but got error in deploying. I believe i am doing some things wrong since it is my first time using BAS with workflow module as LCNC developer.

Below are my attempts. If you can point out all errors or maybe an end-to-end solution for a LCNC user of BPA with workflow module on script tasks and other artefacts in BAS
Thank you

Screenshot 2024-04-22 at 14.26.22.pngScreenshot 2024-04-22 at 14.27.52.pngScreenshot 2024-04-22 at 14.28.03.pngScreenshot 2024-04-22 at 14.28.23.png