Skip to main content
Nintex Community Menu Bar
Solved

Get URL/Path to Sighature File in OneDrive and Delete File

  • March 7, 2021
  • 2 replies
  • 16 views
  • Translate

I have a form with a signature field. The signature field is saved to OneDrive and used to generate a document.

 

After the document is generated, I want the workflow to delete the signature file from OneDrive.

 

But I don't seem to have a way to identify the url of the signature file to do that. 

 

Is that available anywhere in the flow?

Best answer by msalamon

I managed to figure it out. 🙂


It's a bit complex, but if you use the Call a Web Service action and make the call against the Nintex get instance REST call, passing in the instance id from the Context variables and using your personal token (below) -- see these pages for more info on how to do this:  https://help.nintex.com/en-US/nwc/Content/Designer/Actions/Callwebservice.htm and https://help.nintex.com/en-US/nwc/Content/Settings/APItokens.htm) -- you can retrieve the instance data.

 

I then needed to add 2 Query JSON steps, the first to retrieve the signature value from the startData.  The signature value is a JSON object stored as a string.  The second Query JSON step then pulls from that string JSON object the path value.


Here is more detail:

1 - Call a Web Service.  GET https://us.nintex.io/workflows/v1/instances/[Workflow InstanceID]?startdata=true

btw, I made startdata=true but from my testing any value for that parameter will work to retrieve the startData

2 - Take the response from the web service call and extract the signature info using Query JSON with this JSON Path expression:  $.startData.se_form_variables.se_signature_#_######

3 - Take the signature info and extract the path using this JSON Path expression:  $.path

 

 

View original

  • Novice
  • March 8, 2021

I discovered that this information is available from the Get an Instance REST API call:  https://us.nintex.io/workflows/v1/instances/instance_id?startdata=true, as part of the instance's start data.

 

But to make that call, you would need a bearer token and the instanceid from inside the workflow. I am not aware of any way to get that information.  There should be a more direct way to gather the signature's path, which is in fact stored with the instance.

Translate

  • Novice
  • March 8, 2021

I managed to figure it out. 🙂


It's a bit complex, but if you use the Call a Web Service action and make the call against the Nintex get instance REST call, passing in the instance id from the Context variables and using your personal token (below) -- see these pages for more info on how to do this:  https://help.nintex.com/en-US/nwc/Content/Designer/Actions/Callwebservice.htm and https://help.nintex.com/en-US/nwc/Content/Settings/APItokens.htm) -- you can retrieve the instance data.

 

I then needed to add 2 Query JSON steps, the first to retrieve the signature value from the startData.  The signature value is a JSON object stored as a string.  The second Query JSON step then pulls from that string JSON object the path value.


Here is more detail:

1 - Call a Web Service.  GET https://us.nintex.io/workflows/v1/instances/[Workflow InstanceID]?startdata=true

btw, I made startdata=true but from my testing any value for that parameter will work to retrieve the startData

2 - Take the response from the web service call and extract the signature info using Query JSON with this JSON Path expression:  $.startData.se_form_variables.se_signature_#_######

3 - Take the signature info and extract the path using this JSON Path expression:  $.path

 

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings