2 weeks ago
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 weeks ago
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.
a week ago
@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.