Checking for two coalesce not working hence writing script to check existing combination of twofiels
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 09:27 AM - edited 06-29-2024 09:28 AM
Hi All,
Here I am checking for entity and ram field
if "xx" entity with "yy" ram exits in the table it should update record.
if "xx" with "zz" it should insert,
if "ss" with "yy" still create new record.
Both fields are reference fields, already added name in the both source fields as reference field.
already able to insert record but I want to update is same combination exits.
list view
above is the form view
successfully able to insert records please any one can help,
code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 09:36 AM - edited 06-29-2024 10:05 AM
You don't need a script for this. Coalescing by multiple fields should work fine.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 09:38 AM
Hi @Slava Savitsky ,
I tried doing that, still either it insert's or ignores
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 10:06 AM
That means the values don't match. Check if there are any leading or trailing spaces that prevent matching.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2024 10:39 AM
Actually I am able successfully able to create new records, as entity and RAM both are reference fields and while we are only importing exiting entities and existing RAM's if they doesn't exit then I am rejecting that record, using choice action = reject, tried with create also still inserting new record