Jump to content

OnRecordStart Rule - ComposeThisRecord Rule


Recommended Posts

Having a bit of trouble. Trying to write an rule for when I'm composing my letter to skip all letter codes but the 2 different codes I need.  I currently have it setup to skip all but 1 code, which that works. But now I need to add in another code to the mix.  My file that I have attached will always have multiple different codes. There are only 2 codes that will get this letter I'm composing.   Here is my current rule:

if(Field("LTRNM")!="CONFNL")FusionPro.Composition.composeThisRecord=false;

I would think FP has a way to add in a 2nd code that i want to show up when composing. Any help would be great.  Also, I do have this setup as an event rule OnRecordStart. 

Thanks 

Link to comment
Share on other sites

I would just do this and set composeThisRecord positively for the values you want, and negatively for others:

FusionPro.Composition.composeThisRecord = (Field("LTRNM") == "CONFNL" || Field("LTRNM") == "Other Value");

Which I think more closely matches your stated logic that "There are only 2 codes that will get this letter I'm composing."

  • Like 1
Link to comment
Share on other sites

19 hours ago, Dan Korn said:

I would just do this and set composeThisRecord positively for the values you want, and negatively for others:

FusionPro.Composition.composeThisRecord = (Field("LTRNM") == "CONFNL" || Field("LTRNM") == "Other Value");

Which I think more closely matches your stated logic that "There are only 2 codes that will get this letter I'm composing."

19 hours ago, Dan Korn said:
 = (Field("LTRNM") == "CONFNL" || Field("LTRNM") == "Other Value");

Thank you so much! That worked like a charm! Appreciate the help. Have a great day.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...