Calculate Infoblock: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "{{#seo: |title=Calculate Infoblock |titlemode=append |keywords=Planfix, Calculate Infoblock, Calculate, Infoblock, Rules, Email, Main rule action for email, Query parsing, Automated scenarios, API, Incoming webhooks, Webhooks, Mail parsing |description=Calculate Infoblock }} In Planfix, data can come from different sources, sometimes in an incorrect format. There are cases when it needs to be "cleaned up" before further use. For example: *Trim part of it *Combine several...")
 
No edit summary
 
Line 18: Line 18:
If the "+" is specified in the phone number, nothing is added to the infoblock, if it is not specified - "+" is added before the digits of the phone number.
If the "+" is specified in the phone number, nothing is added to the infoblock, if it is not specified - "+" is added before the digits of the phone number.


== Additional Information ==
<!-- == Additional Information ==
*[https://planfix.com/ru/blog/vychislit-infoblok-dobavlyaem-v-zadachi-planfiksa-predvaritelno-obrabotannye-dannye/ Calculate Infoblock: Adding pre-processed data to Planfix tasks]
*[https://planfix.com/ru/blog/vychislit-infoblok-dobavlyaem-v-zadachi-planfiksa-predvaritelno-obrabotannye-dannye/ Calculate Infoblock: Adding pre-processed data to Planfix tasks] -->


== Go to ==
== Go to ==

Latest revision as of 10:22, 28 July 2023

In Planfix, data can come from different sources, sometimes in an incorrect format. There are cases when it needs to be "cleaned up" before further use. For example:

  • Trim part of it
  • Combine several infoblock values into one
  • Combine received data with values that already exist in the task

Usually, additional processing of data coming into Planfix is necessary when working with APIs, webhooks, and email.

Example

Imagine you are collecting applications. Data from clients comes in through an incoming webhook via a special form on the website. You plan to send an SMS notification about a completed order, so phone numbers must be collected in a specific format, for example, with a mandatory "+" before the digits of the number. You can add the missing "+" using the Calculate Infoblock operation:

Ow7355.png

If the "+" is specified in the phone number, nothing is added to the infoblock, if it is not specified - "+" is added before the digits of the phone number.


Go to