is there a way to detect if a transaction is creat...
# suitescript
j
is there a way to detect if a transaction is created via an integration and which one using suitescript?
m
System notes will tell you the context of changes
j
but it wouldn’t say which integration it is, right?
m
Oh right it wouldn’t say that
You would need to add some field in the integration to identify which one made it
j
it’s the integration with paylocity creating JEs, we want them to autoapprove but there are other integrations in play that we dont want autoapproving, so I wanted a way to detect it
m
If you setup the access tokens for paylocity through a unique user then you could auto approve journals created by the “paylocity integration” user
j
that’s what I was leaning towards, but we have few seats remaining so that’s a though sell
n
Create a custom field and set it via integration. I would recommend a drop down field and select the option "Paylocity" via integration. The drop down field can be reused for other sources /integration
👀 1
☝️ 2
e
A single user can have multiple roles. You can create a new role for each integration, the role also shows in the System Notes.
m
Ah yes. Even better is to use the role to signify the integration then you don’t need to use up more licenses Great idea!
With the custom field route you may not always have the ability to add custom mappings. For example Paylocity may not support custom fields or customizing their standard integration so the role is a great alternative
🤔 1
j
@Edgar Valdes right! thanks for the idea, I think this is what I’ll end up doing