How to Get Substring from Comma-Separated String by using SELECTSTR Function in D365 BC

Get Substring from Comma-Separated String by using SELECTSTR Function:

(1) In this blog, we will get to know about the use of the SELECTSTR function in D365 BC. It retrieves a substring from a comma-separated string.

(2) Syntax of SELECTSTR:

NewString := SELECTSTR(Number, CommaString)

(3) Note: It only uses when the comma “,” is in a string, otherwise it returns an error.

(4) Now let’s take an example and see the result. In this example, we declare two variables, the First Variable stores the original value, and the Second Variable stores the result after using the SELECTSTR function, as shown.

using the SELECTSTR function in D365 BC
  • Message 1 is: Get values
  • Message 2 is: then enter this value
  • Message 3 is: and save

(5) Remarks from Microsoft, as shown.

Get Substring from Comma-Separated String Microsoft

Dimensions and Dimension Values Overview and Setup in D365 BC
How to Copy String using COPYSTR Function in D365 BC
Finished Production Order in Business Central
Creation of Number Series in Business Central
Creation and Posting of Consumption Journal in D365 BC
Creation and Posting of Output Journal in D365 BC
Register Consumption and Output for One Released Production order line– Microsoft Docs

Leave a Reply