Skip to main content
Nintex Community Menu Bar
Question

model conditions to only apply for new rows

  • July 10, 2024
  • 4 replies
  • 18 views

Forum|alt.badge.img+18

I have a use case where I’d like a model to create a new row if one doesn’t exist, but load an existing row if it does exist. So far so good.
I need to have certain conditions applied only when the row is created (but not be part of the query)… conditions like Date__c = ‘TODAY’ and Nurse__c = (userinfo)(Name).

What’s the best way to handle that?


This topic has been closed for replies.

4 replies

Forum|alt.badge.img+11

Not quite sure I understand what you mean by conditions.  Do you mean default those specific fields to the values you specified in the question?


Forum|alt.badge.img+18
  • Author
  • July 10, 2024

Yes. Which is what conditions do during row creation.

Looks like a model action triggered by new row creation with a bunch of update field on row actions will do the trick.

Is there an easier/better way?


Forum|alt.badge.img+11

Or snippet.  Snippet has the advantage that you can leverage logic, otherwise, stick with the AF.  Anyone else care to weigh in?


Forum|alt.badge.img+13

This is what I’d suggest.