Jump to content

Date Format in Auto-Emails


SJEaton

Recommended Posts

Hi

In one of our ProCaps we have date pickers that we then pull in via custom fields into an auto-email.  The dates however are presenting in American format (see example attached) and we want to change this to DD/MM/YYYY.

We have amended the user details (including the system administrator) to the date format that we want but it still hasn't fixed it.

Can you advise where we need to specify the date format we want presented in auto-emails please?

Thanks

Sam 

Link to comment
Share on other sites

From: HR Admin [mailto:<edited>]
Sent: 03 August 2017 07:48
To: <edited>
Subject: Request to Increase the Pay of an Agency Worker - Ref: SR00001147

 

Dear Matrix Account Manager
Could you please implement the following higher rate changes to this placement:

 
Placement no: 

 

 

 
Start date for proposed higher pay rate: 

 

 

 
Higher pay rate termination date: 

 

 

 
SAP number: 

 

 

 
Job category: 

 

 

 
Role title: 

 

 

 
Increased pay rate for role: 

 

 

 
Is this role ‘in scope’ or ‘out of scope’ for IR35 purposes?

 

 

 
Start date of placement: 

 

 

 
End date of placement: 

 2017-09-09


 
Kind regards, 
Human Resources 
Corporate Development Group
London Borough of Waltham Forest 
Waltham Forest Town Hall
Forest Road
London E17 4JF

 
Tel: <edited>
Email: 

 
Twitter: 
Website: 
Link to comment
Share on other sites

@SJEaton if the date is stored in a custom field it will be stored as string using the database format (UTC) for date/time values:  YYYY-MM-DD hh:mm:ss. Once the value is stored in a custom field, it can't be converted to any time zone or date/time format as it is (now) a string.


In your above posts, I have removed the attachment and edited email addresses and telephone numbers as it is considered confidential information which should not be made publicly available.

Link to comment
Share on other sites

Hi Sam,

 I hope you are well.
That's correct. This is a known design limitation that we are acutely aware of and taking steps to address. The planning has been completed therefore it is just a matter of prioritising and initiating the development work. Presently I can't provide a delivery date but this is a challenge that other Hornbill users have encountered and we recognise it as something that certainly has to be overcome.

Dan

Link to comment
Share on other sites

@SJEaton the date/time convert functions (the ones that convert a date/time to a time zone or a format) only work with date/time fields. Hornbill would not know what value you store in a string (VARCHAR)custom field if is a simple text or a date time... as @DanielRi said this is something that should be catered for in a future update.

This being said, thanks to @Trevor Killick for pointing this out, as a workaround you can use Hornbill Integration Bridge to convert the value in the custom field to a specific format. If you tell me the BP name on the requests where this email is being sent I can quickly draw it to show you how it works...

  • Thanks 1
Link to comment
Share on other sites

@SJEaton there is a copy of the BP, named: HR Request to Increase the Pay of an Agency Worker (Control 3) - Copy . Is ready to use, can you give it a try? I suggest using this BP for tests, to see if it works (if it does what you need) then you can do the same in the original process...

EDIT: currently it only formats Custom_G. If the test is ok for this field we can do the same for other custom fields storing date/time values...

Link to comment
Share on other sites

No it hasn't worked...

 



Dear Matrix Account Manager
Could you please implement the following higher rate changes to this placement:


				
Placement no: 


				


				
Start date for proposed higher pay rate: 


				


				
Higher pay rate termination date: 


				


				
SAP number: 


				


				
Job category: 


				


				
Role title: 


				


				
Increased pay rate for role: 


				


				
Is this role ‘in scope’ or ‘out of scope’ for IR35 purposes?


				


				
Start date of placement: 


				


				
End date of placement: 

 undefined





Kind regards, 
Human Resources 
Corporate Development Group
Link to comment
Share on other sites

@SJEaton sorry for the delayed reply, I am a bit late here ... :D but yes, it would be the same node logic for all other custom fields storing dates.

For reference, in case someone else finds this thread and/or is interested in teh solution, this is how it was done (date format changed) via the BP using iBridge integration nodes:

First, have an "Integration Call" node to convert the date value stored in a custom field (let's say Custom A):

image.png

Second, have an "Update Request" node, for custom fields, which updates the same custom field (in our example Custom A) with the converted value (which is the response parameter from the Integration Call node):

image.png

You should now have the converted value in your custom field! ;)

  • Like 3
Link to comment
Share on other sites

  • 1 month later...

Hi

I've used this in my 'I Want to Appoint - V2.0' BPM to convert the date format for custom field A.  This custom field is actually captured in the details of the request and not the ProCap and when the workflow reaches the point that it generates the email with the converted date in it, it's automatically changing the date entered in custom A to 'undefined' and then entering 'undefined in the email.  Help!?

It's happened on test request SR00001284.  I'll send some screen shots of the integration bridge I've set up but I can't see anything wrong with it.  Any ideas why this is happening?    

Sam

Capture.PNG

Capture1.PNG

Link to comment
Share on other sites

If I test it out selecting 'Internal Appointment' it works ok and the date remains in the details and the format is changed nicely on the email that is generated at the Om-Boarding - Internal stage.  When I test it out selecting 'External Appointment' however, the issue occurs when it reaches the Acknowledgement email to Manager node i.e. it changes the date in custom A to undefined and then enters undefined I the email.

Link to comment
Share on other sites

@SJEaton

When it is first entered in the Details section does it appear to display properly and then change to being undefined, as that would then suggest it being corrupted by the Integration process in the BPM linked to the Service/Catalog entry.

Does the specific custom field setup on this service differ from the one setup for Internal Appointment, or is it the same service?

Cheers

Martyn

Link to comment
Share on other sites

Yes it appears fine throughout the process until it reaches the stage where the integration process takes place and the acknowledgement email is triggered.  It does seem that it is being corrupted yes.  The custom field is the same for whether it's internal appointment or external appointment.

Sam

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...