{"id":10810,"date":"2017-11-24T20:27:31","date_gmt":"2017-11-24T14:57:31","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=10810"},"modified":"2017-11-24T20:27:31","modified_gmt":"2017-11-24T14:57:31","slug":"how-to-concatenate-multiple-string-field-values-in-resco-mobile-crm","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/11\/how-to-concatenate-multiple-string-field-values-in-resco-mobile-crm\/","title":{"rendered":"How to concatenate multiple string field values in Resco Mobile CRM"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Time and again we have received the requirement to concatenate two or more strings fields value &amp; store it in a string field in Resco Mobile CRM.<\/p>\n<p style=\"text-align: justify;\">In this blog, will provide a quick walkthrough of the process to achieve this.<\/p>\n<p style=\"text-align: justify;\">Suppose we need to store the <em>Address1 street1<\/em>, <em>Address1 street2<\/em>, <em>Address1 street3<\/em>, <em>Address1 city<\/em>, <em>State\/ Province<\/em>, <em>Postal code<\/em> of the <em>Work Order<\/em> record into a custom field (For Example, <em>\u2018Full Address\u2019<\/em>).<\/p>\n<p style=\"text-align: justify;\">Also, we would need to reflect the changes applied to the above fields (<em>fields that are concatenated<\/em>) to the <em>\u2018Full Address\u2019<\/em> field.<\/p>\n<blockquote><p><strong><em>Note: As the Work Order Entity doesn&#8217;t have Full Address field. We have created a custom field \u2018Full Address\u2019.<\/em><\/strong><\/p><\/blockquote>\n<h2 style=\"text-align: justify;\"><strong>Steps to concatenate multiple string field values in Resco:<\/strong><\/h2>\n<p style=\"text-align: justify;\"><strong>Step 1:<\/strong> In the <em>Resco Woodford<\/em> project, go to the <em>Work Order entity<\/em> &gt; <em>Expand it<\/em> &gt; <em>Click on the Form<\/em>. Once you click on the Form, the list form will open as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-10802\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM\" width=\"872\" height=\"339\" \/><\/p>\n<p><strong>Step 2:<\/strong> Now select and open the <em>Form<\/em> and add the custom <em>\u2018Full Address\u2019<\/em> field on the form as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-10803\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM1.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM1\" width=\"884\" height=\"410\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>Step 3:<\/strong> After adding the <em>\u2018Full Address\u2019<\/em> field on the form, we need to write a <em>Workflow<\/em> on change of the address details (msdyn_address1, msdyn_address2, msdyn_address3, etc.) as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-10804\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM2.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM\" width=\"892\" height=\"442\" \/><\/p>\n<p style=\"text-align: justify;\">Here, we have highlighted two items that are important parts of concatenating the multiple field\u2019s values in a single string field.<\/p>\n<p style=\"text-align: justify;\"><strong>Item# 1: Variable<\/strong><\/p>\n<p style=\"text-align: justify;\">We added a variable <em>\u2018FullAdd\u2019<\/em> of type <em>StringList<\/em>. (<em>StringList<\/em> type behaves like an array of string in Resco)<\/p>\n<p style=\"text-align: justify;\">Once we have completed with the Variable declaration, the next step is to add the items in this variable as shown in the above screenshot.<\/p>\n<p style=\"text-align: justify;\">In our case, we have added <em>\u2018msdyn_address1, msdyn_address2, msdyn_address3\u2019<\/em> etc.<\/p>\n<p style=\"text-align: justify;\">After adding all the required fields in the <em>\u2018FullAdd\u2019<\/em> stringList, the final step is <em>Assigning the value of variables to the field.<\/em><\/p>\n<p style=\"text-align: justify;\"><strong>Item# 2: Assigning the value of variables to the field.<\/strong><\/p>\n<p style=\"text-align: justify;\">To assign the value of the variable to the field, we have to select the Entity field, and then click on the button next to the Entity field &amp; select <em>\u2018Format\u2019<\/em> option.<\/p>\n<p style=\"text-align: justify;\">Now pass the Format string in the <em>\u2018format string\u2019<\/em> text box as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-10805\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM3.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM\" width=\"476\" height=\"269\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-10806 \" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM4.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM4\" width=\"815\" height=\"48\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-10807\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM5.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM5\" width=\"814\" height=\"48\" \/><\/p>\n<p>Finally, click on <em>\u2018Chose Variable\u2019<\/em> and select the variable. In our case, the variable is <em>\u2018FullAdd\u2019<\/em> as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-10808\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM6.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM6\" width=\"810\" height=\"63\" \/><\/p>\n<blockquote><p><strong><em>Note: The format string {0} {1} {2} {3} {4} {5} specify the index of the items added in the \u2018FullAdd\u2019 stringList Type variable. <\/em><\/strong><\/p><\/blockquote>\n<p style=\"text-align: justify;\">Save and close the Rule and Publish the mobile project.<\/p>\n<p style=\"text-align: justify;\">Now, log into the Resco Mobile App and sync.<\/p>\n<p style=\"text-align: justify;\">Go to the <em>Work Order<\/em> form. Here you can see the result as the \u2018Full Address\u2019 have the value as per the above requirement.<\/p>\n<p style=\"text-align: justify;\">Also, when the user makes any changes in the address fields, the same changes are reflected on the \u2018Full Address\u2019 field as shown in the below screenshot;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-10809\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-concatenate-multiple-string-field-values-in-Resco-Mobile-CRM7.png\" alt=\"How to concatenate multiple string field values in Resco Mobile CRM7\" width=\"424\" height=\"346\" \/><\/p>\n<h2><strong>Conclusion:<\/strong><\/h2>\n<p>By following the steps mentioned above, the user can easily concatenate multiple string field values in a single variable and can set it to any string field in the Resco Woodford mobile Project.<\/p>\n<p><a href=\"http:\/\/www.inogic.com\/product\/productivity-pack\/click-2-export-microsoft-dynamics-crm-reports\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter  wp-image-6683\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/09\/Easily-Export-Dynamics-365-Reports-in-PDF-Word-or-Excel.png\" alt=\"Easily Export and Email Dynamics 365 Reports in PDF, Word, or Excel\" width=\"812\" height=\"204\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Time and again we have received the requirement to concatenate two or more strings fields value &amp; store it in a string field in Resco Mobile CRM. In this blog, will provide a quick walkthrough of the process to achieve this. Suppose we need to store the Address1 street1, Address1 street2, Address1 street3, Address1\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/11\/how-to-concatenate-multiple-string-field-values-in-resco-mobile-crm\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":10814,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,19,48],"tags":[1447],"class_list":["post-10810","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-crm","category-resco-mobile-crm","tag-resco-mobile-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/10810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=10810"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/10810\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/10814"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=10810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=10810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=10810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}