# I'm new to BPM and would like to ask for your help. What is the syntax for writing code in BPM, such as assigning current row value to a variable, displaying message prompts, error prompts, etc.?

**URL:** <https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579>\
**Category:** Kinetic ERP\
**Tags:** bpm\
**Created:** [May 8, 2023, 6:15am UTC](https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579 "2023-05-08T06:15:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yitao\_gu](https://www.epiusers.help/user_avatar/www.epiusers.help/yitao_gu/32/54859_2.png) [@yitao\_gu](https://www.epiusers.help/u/yitao_gu)\
**Post date:** [May 8, 2023, 6:15am UTC](https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579/1 "2023-05-08T06:15:13Z")

</div>

for example：  
assigning current row value to a variable：  
var ds = new Erp.Tablesets.DMRProcessingTableset();  
var Packslip=ds.DMRActn[？？？？].Packslip;

MessageBox.Show(Packslip);？？？

throw new System.Exception(“Stop”);  
throw new Ice.BLException(callContextBpmData.Character01);

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [May 8, 2023, 1:31pm UTC](https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579/2 "2023-05-08T13:31:55Z")

</div>

@yitao_gu Get the tech guid for your version from [https://epicweb.epicor.com/](https://epicweb.epicor.com/). It has sample bpms. Epicor would prefer using widgets and not code unless it can’t be helped.

You also will want to go to the 10.2.700 list and get the BPM cookbook, converted code programming guide and the BO reference since I do not see them listed after that.

---

<div class="post-metadata">

**Author:** ![yitao\_gu](https://www.epiusers.help/user_avatar/www.epiusers.help/yitao_gu/32/54859_2.png) [@yitao\_gu](https://www.epiusers.help/u/yitao_gu)\
**Post date:** [May 9, 2023, 12:29am UTC](https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579/3 "2023-05-09T00:29:15Z")

</div>

Thank you very much for your reply. We have used a lot of C# custom development in Epicor, but these developments may not be usable in the future. Therefore, we want to use BPM to replace some of the development content. So I want to learn the syntax of BPM, and is authorization required for Epicweb? It seems that I cannot access it personally.

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [May 9, 2023, 2:57am UTC](https://www.epiusers.help/t/im-new-to-bpm-and-would-like-to-ask-for-your-help-what-is-the-syntax-for-writing-code-in-bpm-such-as-assigning-current-row-value-to-a-variable-displaying-message-prompts-error-prompts-etc/102579/4 "2023-05-09T02:57:32Z")

</div>

Yes, you need your CAM to get you access I think. Going forward customizations will be moved to bpms, but also functions that you can call from the client.
