Database Update Tool - How To Update Status Previous Data with New Run Process

Confluence User - 19 Aug, 2021

Hi,

how can i udpate status previous application to 'close' after applicant renew their application(with new id) by using database update tool?


UPDATE

app_fd_application SET c_status= 'Close'

WHERE c_id = 'PreviousId'


I dont know how to connect run process with the previous id.


Thanks.


userviews;datalists;forms

3


19 Aug, 2021
confluenceUser
confluenceUser

In your new process form, add a selectbox field element (field id "PreviousId") for the user to select the previous process record to close, store into DB the record id, then in your process tools, use yr SQL above to update the previous process record status, example:

UPDATE app_fd_crm_application SET c_status= 'Close' WHERE c_id = 'PreviousId'

26 Aug, 2021
confluenceUser
confluenceUser

You can store the previousId in one of the workflow variables (Hash Variable#WorkflowVariableHashVariable) on the form and use it in where clause as '#variable.previousID#'

28 Sep, 2021
confluenceUser
confluenceUser

how to get the previous id with hash variable?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print