The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Recommended Posts

Posted

For Scribe online, withinFetch I am trying to filter one field on 3 different values within one formula. It would look something like this:

new_companyrelationshiptypeid = "4d06bd78-1322-e211-8b95-78e3b508f865" or "4261b3bc-1322-e211-8b95-78e3b508f865" or "4261br56-1322-e211-8b95-78e3b508f865"

It appears that I need to run it on one line (or fromula) and not enter the fieldmultuple times with ORs between them within the GUI, as it runs the insert/update multiple times ifnew_companyrelationshiptypeid = more than one of the above answers.

I haven't been able to figure out how to enter multiple criteria in one formula. Any help is greatly appreciated.

Thanks.

Doug

  • 1 month later...
Posted

HiDoug,

You can add multiple lines with ORs in the filter tab of your Fetch block.

In your example it will fetchmultiple records orinputs (your fetch resultset can be 0,1,2 or 3 records )

Since you only want to have one insert or update, you would need to add an extra logic within your fetch loop, (using IF block) to decide which one of your fetched records do you want to use for your output (insert or update).

In building out this logic you can also use the scribe labs variable connector(or a nested IF blocks construction) to keep track of the state in your map for only 1 output.

I hope this helps you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...