Hi All,
I am working on a custom solution to call a Powershell script which is located on the BC Server (OnPrem) where variables from the BC have to be sent to the Powershell script. Soluiton is desinged like this:
I need to know how to pass a variable to the Powershell script, and how to return some text from Powershell to the BC, and I would like to avoid the PowerAutomate, since my client uses BC23 OnPrem, If outherwise not possible, I will then use PowerAutomate flow to call the PS script.
1. user opens Customer Card
2. user clicks on a button (action item) "Create Folder"
3. RestAPI ia called to execute the PS file located on the BC Server, where the parameter (CustomerNo) has to be passed to the Powershell script.
4. Powrshell is executed
5. parameter of complete file path is passed from the Powershell script to the Customer Card.
Any ideas are welcomed.
Thanks Damjan