Is there a way to create inactive record programatically ?
*This post is locked for comments
Is there a way to create inactive record programatically ?
*This post is locked for comments
Hey Andrew,
I have created a active record and updated the status so I am sorted :)
Thanks
Then I will suggest you a small trick
1. Add some flag field to entity and import it along with entity - it will mean that record should be deactivated after creation.
2. Add Real-Time workflow that will trigger on Create of record, check flag field from step 1 and then deactivate record.
Simple, fast and does what you want.
I tried to add status value along with other fields but it is not taking and I am bulk creating the records :(
Hello,
You can try to pass statecode/statuscode along with the list of other fields. If this wouldn't work - deactivate it immediately after creation.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156