SJEaton Posted May 22, 2018 Posted May 22, 2018 Hi I want to automatically put a request on hold until a date entered in a custom field. I've configured the first attached node but it doesn't seem to work. I thought it might be because Custom A isn't a date format field so I thought maybe I could update for example say Custom 21 (which is a date format field) with what is entered in Custom A but it still didn't work. Can anyone throw any light on what I need to do to get this working? Thanks Sam
Dan Munns Posted May 22, 2018 Posted May 22, 2018 Does the variable output the same format as the node is looking for? I am assuming that the node wants the date time (22/05/2018 13:32) Have you tried adding a time of say 09:00 after the variable? (&[global["flowcode"]["customFieldA]] 09:00)
SJEaton Posted May 22, 2018 Author Posted May 22, 2018 Its actually not a date/time, just a date . And no, the formats are different so I know this is an issue but dont know how to get around it Sam
Dan Munns Posted May 22, 2018 Posted May 22, 2018 Have you tried taking the answer straight from the PC rather than a custom field? What is the format the 'hold until' node is looking for? Edit: @SJEaton So having tested this, you need to set some text in the 'Reason' field on the node for this to work.
SJEaton Posted May 22, 2018 Author Posted May 22, 2018 Hi @Dan Munns, ok I'll add the reason and see what happens, thanks Sam
SJEaton Posted May 22, 2018 Author Posted May 22, 2018 OK it did move it on but it didn't actually put the request on hold. We'll have a look at our configuration to see if its something we've done wrong. Sam
Dan Munns Posted May 22, 2018 Posted May 22, 2018 It worked for me using the form question rather than a custom field.
SJEaton Posted May 23, 2018 Author Posted May 23, 2018 Hi @Dan Munns, its not a form question in my instance, its a custom field in the request details that the owner completes partway through the process Sam
Dan Munns Posted May 23, 2018 Posted May 23, 2018 Hi @SJEaton Have you set the custom field to be a date selector or do they just put the date in manually?
Dan Munns Posted May 23, 2018 Posted May 23, 2018 That is a strange one then. Unless you have to use a certain type of node prior to the on hold. @Victor may be able to shed some light...
Victor Posted May 23, 2018 Posted May 23, 2018 @Dan Munns sure, this better? I'll have a look see what's going on and if/how it can be done
SJEaton Posted May 24, 2018 Author Posted May 24, 2018 Morning @Victor Ok so I've now made Custom A, Custom 21 to make things easier. Attached is a screenshot of the BPM section and the 'Put Request on Hold' and 'Suspend Until Start Date' auto tasks. When tested, it's not putting the request on hold or suspending and carries on to issue the 'Email to Manager / Confirmation of New Starter Commencement' and 'Confirm Commencement of Employment' human task. (The test request is SR00038940 if you want to take a look). What am I doing wrong here?
Victor Posted June 5, 2018 Posted June 5, 2018 @SJEaton sorry for the delays on this. I had a look at SR00038940 and from what I can see the Custom 21 field has a value of "30/04/2018 23:00:00" (I guess because of the captured value of "01/05/2018 00:00:00" got converted from BST to GMT). However, the request was logged on "24/05/2018 07:29:05" and you are trying to put it on hold in a past date which is not possible. You can only put a request on hold at a future date. Can you please run another test and make sure the date/time value captured in Custom 21 field will be a future date/time and see what happens then with the automatic on-hold?
SJEaton Posted June 5, 2018 Author Posted June 5, 2018 Hi Victor, thanks for this. I ran another test (SR00040734) and it did indeed put it on hold :). Yay! Thanks for your help. I think I've just looked at this complex process for far too long and can't see the wood for the trees anymore haha! Sam
SJEaton Posted June 5, 2018 Author Posted June 5, 2018 Hi @Victor, in order to test that it comes off hold, should I be able to put today's date with a future time? Otherwise we will need to wait at least a whole day for it to come off hold? Sam
Victor Posted June 5, 2018 Posted June 5, 2018 Just now, SJEaton said: should I be able to put today's date with a future time? Yes, as long as the date/time is in the future it should work... It can be a day, an hour, even a minute or second (if you can time it right ... meaning you would need to be fast!)
Steve Giller Posted June 12, 2018 Posted June 12, 2018 On 6/5/2018 at 9:57 AM, Victor said: Yes, as long as the date/time is in the future it should work... It can be a day, an hour, even a minute or second (if you can time it right ... meaning you would need to be fast!) I'm not doing this yet - but if I do, I'll be trying to achieve this; during testing at least
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now