2024 Nov 28 2:57 AM
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
2024 Nov 29 12:47 PM
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.
2024 Nov 30 8:06 PM
@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.
Tuesday
Hello Weiss,
Thank you for reaching out to us. Are you still encountering the issue? Have you had a chance to explore the provided solution? Please share more details to help us clarify more.
Tuesday
I'll let @weiss_zhao1 speak for themselves, but the post talked about Script Task in process, but the solution talked about Custom Script in automation.