Anyone have any tips for how to map to a NetSuite ...
# integrations
a
Anyone have any tips for how to map to a NetSuite date field in Celigo when creating an Invoice transaction. I’ve tried using handlebars and also Date formats in the Mapping tool but I just keep getting Invalid date format (must be M/D/YYYY). Not sure where else I can reformat dates
m
If you don't submit a date, it should utilize today's date. Have you attempted to simply hardcode a date to figure out which date format is accepted, first?
{{dateFormat "MM/DD/YYYY" [myDateField] "M/D/YY"}} this handlebar will update a date field format from m/d/yy to mm/dd/yyyy. You can play around with it for your format needs.
a
Do you need the quotes around the formats?
m
Yes
a
Still get the same error
m
error if hardcoded?
or error if date not mapped?
a
No if I use the handle bar with my date field
{{dateFormat “YYYY-MM-DDTHHMMSS” received_date “M/D/YYYY”}}
m
Needs to be the opposite.
Assuming you are converting the hourminutesecond time into M/D/YYY
{{dateFormat “M/D/YYYY” received_date “YYYY-MM-DDTHHMMSS”}}
a
Still get the same error
m
You should play with the developer playground in Celigo to get it right.
t
Probably need to set your import to SuiteApp 1.0 for now. See thread here: https://docs.celigo.com/hc/en-us/community/posts/14259950323995-NetSuite-Import-Sale[…]use-of-mapped-date-field-API-SuiteApp-SuiteScript-2-x-?page=1 Patch looks to be about a week out
m
That thread certainly answers that.
a
Got it to work Had to use THHmmss instead of THHMMSS
@mightyd3 thanks for the help. Got me on the right track
Now just need to figure out my timezone problems. I can’t tell what time zone my source data is in plus what time zone Celigo is using when sending callls with {{lastExportDateTime}} in them. It seems like everything is a few hours off to me 🤷‍♂️
m
I believe that is set in the Time Zone settings in the 'my account' section.
a
So if I set my settings in my Celigo account to Central time Put my source data is in pacific time Celigo will do the conversion for me? If the last exported time was 10:00am CST it will look for dates after 8:00am Pacific in my source data?
As for the other questions, the lastExportDateTime is set in UTC by default and your account level profile setting has nothing to do with changing that. If you need to reformat to another timezone, you can use dateFormat handlebar expression