How to bypass all mandatory fields while updating a field from a scheduled job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 12:52 AM
Hi All,
I need to update a field using scheduled job. While updating, if any mandatory fields are there then they need to bypass & record needs to be updated.
How to achieve this in scheduled jobs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 12:58 AM
If you are just updating the fields, it's not validating any other mandatory fields on the record, except when you have data policies in place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 03:13 AM
I already tried with Fix script, it is not updating the record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 08:00 AM
I tried it with a scheduled job and had no issues. Do you have data policies in place? Fields mandatory from ui policies and dictionary level were just ignored while updating non mandatory fields.