Skip to main content
Nintex Community Menu Bar
Question

model conditions to only apply for new rows

  • Jul 10, 2024 12:29 AM UTC
  • 4 replies
  • 53 views
  • Translate All

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?

Translate

Forum|alt.badge.img+18
  • Author
  • Jul 10, 2024 1:14 AM UTC

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?

Translate

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?

Translate

Forum|alt.badge.img+13

This is what I’d suggest.

Translate