SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to read environment variable of project of SAP Build Process Automation in Script Task

weiss_zhao1
Newcomer
0 Kudos
339

Hi Experts,

We are trying to read the environment variable of project of SAP Build Process Automation in Script Task. But so far as we know, we can only read Custom Variables, Process Inputs, Process Metadata and API data...

Is there any solution to get environment variable in Script Task? Thank you.

Best regards,
Weiss

2 REPLIES 2

Sankara1
Product and Topic Expert
Product and Topic Expert
0 Kudos
239

Hello Weiss,

Thank you for reaching out. Please find the guidance on using environment variables attached. Examples begin on page 55 (https://help.sap.com/doc/0ff61ed2d1334ed7804f77cd38cb708e/Cloud/en-US/a0b24deefff14ba9b7cb32b38b9793...)

Feel free to reach out if you need further assistance.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
206

@weiss_zhao1 Can you describe your scenario a little more? I am assuming you have an automation with environment variables that you then want to use in the main process?

Environment variables are used with automations: https://help.sap.com/docs/build-process-automation/sap-build-process-automation/create-environment-v...

If you'd want this variables in your process, you can easily create outputs in your automation and set them to the environment variables.

 




--------------
See all my blogs and connect with me on Twitter / LinkedIn