How to pass secure string value from one process to another in same project

how to pass or use secure string(credential) which i am taking from Orchestrator and storing in my main workflow to another process(xaml file) in same project?

Please help.

Thanks in advance.

@Jainsweety

Use Type Secure text Activity and pass that value from orchestrator.

i did that

You can convert it to a normal string.
Check Convert SecureString to String - Get Secured Credential

@Jainsweety

Then what error are you facing ?

Use Get Credentials Activity to read the credentials from orchestrator.

If you want to communicate between two workflows then we have to create Arguments and specify corresponding direction.

i have main workflow where i am calling another process, i need to pass secure string from main to sub process which is taken from orchestrator.

in Type secure text activity , string is coming empty in sub process.

i tried this one also.
created arguments in main workflow and passed to another workflow using out direction.

@Jainsweety

Could you please show me screenshot of Arguments in both parent and it’s sub process.

@lakshman
This is my main WF where i am calling Sub WF.

@lakshman

This a Sub WF where i need password to be reflected from main WF.

@Jainsweety

Go to Edit Arguments of the SharePoint xaml file and show me screenshot of it.

@lakshman

@Jainsweety

It looks everything correct only.

@lakshman
That’s what i want know, if everything is correct then why this is not working,
If anything else you know which we can try?

@Jainsweety

Share the workflow with me and once I reached home and will check it and let you know.

@lakshman Sorry Couldn’t replied i have added one more get credential activity to get asset from orchestrator and this is working.

Thanks,
Sweety

1 Like