PLEASE UPDATE YOUR BROWSER

1 Reason Insurance (715)598-9924

Leadership Through Service

  • About
    • Meet the Insurance Agents of 1 Reason Insurance
    • Partner Insurance Companies
  • Personal Insurance
    • Car Insurance Quote for Personal Auto
    • Boat Insurance
    • Home Owners Insurance Application
    • Life Insurance Quotes
    • Motorcycle Insurance
    • Personal Umbrella Insurance
    • Renters Insurance
    • RV Camper Insurance
    • Snowmobile Insurance
  • Business Insurance
    • Commercial Auto Insurance
    • What is General Liability Insurance
    • Rental or Vacant Properties
    • Workers Compensation in Wisconsin
  • Blog
  • Contact 1 Reason Insurance
    • Contribute As Guest Author
Home > SuiteCRM Insurance CRM > Populate Task Data Fields From A Related Module Using SuiteCRM Workflow and Calculate Fields

Populate Task Data Fields From A Related Module Using SuiteCRM Workflow and Calculate Fields

Posted on: January 6, 2018 By: robert

Workflow doesn't make it exactly easy to populate fields in one module from another in certain situations. By using the "Action" of Calculate Fields, one can "pull" field information to use that isn't available in "Modify Record."

Objective:

I want to populate (using modify) custom fields in Tasks module from the parent module. In this case, I want to add a CSR and AGENT to every Task for tracking and assigning. Having the data fields in the task itself will allow the fields to be used when other modules are sub to the original Task. For example, having quick checkboxes to push the task back and forth between a CSR and AGENT as an account gets worked on and approved/modified along the way.

Problem:

Because SuiteCRM uses "Parent Types" and then IDs, the "Modify Record" doesn't appear to have the parent's fields available to use for automation workflows.

Solution:

– (I already have a CSR and Agent data fields in Tasks Module)

– Add a Data field titled "Parent Account" (or something easily identifiable" to Tasks. You don't have to have this field in edit or detail view, albeit I included it while testing to make sure it was populating correctly.

– Create workflow that is conditioned upon a Task having a parent type of "Account."

–  Retrieve the Account ID from the Account Parent and populate the new "Parent Account" field within Tasks using an ACTIONS of Modify Record. In this case, I have a record type of Tasks, and Add Field of "Account Assigned" and a Field of "Parent ID," which will populate with the Account's NAME, and not the serial ID assigned in SuiteCRM (thank goodness). 

– Create another Action, this time the Select Action will be "Calculate Fields"

– no parameters are required (from the Tasks module) for this exercise, albeit if you're using this as a template for something else similar, you may want fields.

– Relation parameters are used, and using "Accounts : Account Assigned" I then select the field desired, and it creates the variable of {R0} to use, and I repeat and get the next one of {R1}. In this use, I only need two, albeit you can change the number from the parent as you see fit.

– Formulas, I use "two" and they're as simple as you can get. I simply use the drop down to find the appropriate data field in the Tasks module that I want populated, and cut and paste each one in the correct "Formulas."

I looked for the what text modifications etc… would be required and didn't find anything that looked correct, so I simply tried the raw value and it appears to work correctly (I haven't completed extensive testing yet).  If you know of a better way, please leave a comment below.

That said, here's the Text info from the SuiteCRM wiki…..

Text Functions

Text functions are used to manipulate text in various ways. All the functions listed here are fully supports UTF-8 texts, so special characters should not raise any problems.


substring

Signature {substring(text; start; length)}
Parameters text: text value
start: decimal value
length [optional parameter]: decimal

 

value

Description Cuts the substring of a text field from start.

 

If the length optional parameter is not set, then it cuts all characters until the end of the string, otherwise cuts the provided length. Indexing of a text’s characters starting from 0.

Returns Substring of the given text
Example call {substring(This is my text; 5)} returns

 

is my text

{substring(This is my text; 5; 5)}

 

returns is my


length

Signature {length(parameter)}
Parameters parameter: text value
Description Count the characters in a text.
Returns The count of the characters in a text.
Example call {length(sample text)} returns 11


replace

Signature {replace(search; replace; subject)}
Parameters search: text value
replace: text value
subject: text value
Description Replace all occurrences of search

 

to replace in the text subject.

Returns subject with replaced values.
Example call {replace(apple; orange; This is an apple

 

tree)} returns This is an orange tree


position

Signature {position(subject; search)}
Parameters subject: text value
  search: text value
Description Find position of first occurrence of

 

search in a subject

Returns Numeric position of search in

 

subject or -1 if search not present in subject

Example call {position(Where is my text?; text)}

 

returns 12


lowercase

Signature {lowercase(parameter)}
Parameters parameter: text value
Description Make text lowercase
Returns The lowercased text.
Example call {lowercase(ThIs iS a sAmPlE tExT)}

 

returns this is a sample text


uppercase

Signature {uppercase(parameter)}
Parameters parameter: text value
Description Make text uppercase
Returns The uppercased text.
Example call {uppercase(ThIs iS a sAmPlE tExT)}

 

returns THIS IS A SAMPLE TEXT

 

Comments

comments

Categories: SuiteCRM Insurance CRM Tags: SuiteCRM, SuiteCRM Workflow

1Reason Agencies

What clients have to say:

Mike T. "I started a business last year and Robert responded to my inquiries immediately, and was extremely helpful and knowledgeable as to the type of insurance coverages I would need to get started. Now its been a year and he now carries All of my coverages! Absolutely the most hands on agent I've ever worked with but hands down the friendliest! I can call him anytime and never feel rushed and not only that but he responded while on a family vacation. I believe in relationships in business and so does Robert by the way he treats his customers. I have a true friend in the business, thank you Robert!"


Lynn R. "Bob is very knowledgeable and has always done a great job explaining different aspects of coverage. He is very accessible and looks out for what is best for the consumer. We highly recommend him!


Justin T. "Excellent agent, always available for answers to insurance related questions. Bob, is the person most people strive to become. Without a doubt, a great person!"


Sebastian T. "I can not begin to tell you how pleased I am with 1 Reason Insurance ! Their responding services is friendly and complete. For the services my company offers to the public it is sure nice to know that we are covered for a reasonable fee. Just having (1 R I ) 1 Reason Insurance there is such piece of mind ! Their insurance plans are strait to the point and easy to understand.
Thanks for the great service 1 Reason Insurance !"


Jeff H. "Very nice and cares about the customer! He was literally the reason why i chose him over other companies for my insurance"

Categories

  • Bonds
    • Performance Bond
  • Bookkeeping
    • Business Taxes
  • Business Marketing
    • Webhosting
  • Car Insurance
  • Commercial Auto
  • Commercial Insurance
  • Court Cases
  • Cyber Liability Insurance
  • Employment Opportunities
  • Employment Practices
  • Flood Insurance
  • Home Ownership
  • Homeowner's Insurance
  • Insurance Companies
    • Insurance News
  • Insurance Terms
  • Investing
    • Finance & Insurance News
  • Life Insurance
  • Non Emergency Medical Transportation
  • Payroll
  • Pinewood Derby
  • Professional Liability / E&O
  • Real Estate News
  • Rental Property Insurance
  • Retirement & Estate Planning
  • RV Insurance
  • Starting A Business
  • Stock Dividends
  • SuiteCRM Insurance CRM
  • Taxes
  • Tips & Advice
  • Travel
  • Uncategorized
  • Worker's Compensation

Recent Posts

  • New Again Houses® Welcomes New Cash Home Buyers Serving Chicagoland and North Cook County
  • Uniti Group Inc. to Participate at the Goldman Sachs 10th Annual Leveraged Finance and Credit Conference
  • Americold Realty Trust, Inc. Sets Date for Second Quarter 2025 Earnings Release and Conference Call
  • New York home sales slide in April amid higher inventory and steady mortgage rates
  • Greystone Named Commercial/Multifamily Educator of the Year by the Mortgage Bankers Association
  • International Land Alliance FY24 Audit Report Confirms Record Revenues Reported in March
  • Terra’s 2025 Vision Puts AI, Affordability, and Ecosystem Connectivity at the Center of Workers’ Comp Innovation
  • Blue Cross and Blue Shield of Minnesota adds New Virtual Options for Treatment of Eating and Substance Use Disorders