# BPM Custom Code

**URL:** <https://www.epiusers.help/t/bpm-custom-code/54324>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [April 4, 2019, 4:25pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324 "2019-04-04T16:25:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnewman](https://www.epiusers.help/user_avatar/www.epiusers.help/mnewman/32/25152_2.png) [@mnewman](https://www.epiusers.help/u/mnewman)\
**Post date:** [April 4, 2019, 4:25pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/1 "2019-04-04T16:25:20Z")

</div>

Any idea what I am doing wrong here?

foreach (var ttCustomer\_iterator in (from ttCustomer\_Row in ttCustomer  
where (string.Equals(ttCustomer\_Row.RowMod, IceRow.ROWSTATE\_ADDED,  
StringComparison.OrdinalIgnoreCase) || string.Equals(ttCustomer\_Row.RowMod,  
IceRow.ROWSTATE\_UPDATED, StringComparison.OrdinalIgnoreCase))  
select ttCustomer\_Row))

```
{   

 var ttCustomerRow = ttCustomer_iterator;
   
            
        
             
                    if (ttCustomerRow != null 
                    && ((ttCustomerRow.["BISDocReq_c"] == false || ttCustomerRow.["FCPADocreq_c"] == false)
                    || (ttCustomerRow.["BISDocExpDate_c"] == null || ttCustomerRow.["BISDocExpDate_c"] <= DateTime.Today.AddDays(-1))
                    || (ttCustomerRow.["FCPADocExpDate_c"] == null || ttCustomerRow.["FCPADocExpDate_c"] <= DateTime.Today.AddDays(-1)))) 

                         
                       
               
                               
                {
                     InfoMessage.Publish("FOREIGN - NOT COMPLIANT") ; 
                }

```

}

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [April 4, 2019, 4:26pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/2 "2019-04-04T16:26:33Z")

</div>

What’s not working? Unclear from your question

---

<div class="post-metadata">

**Author:** ![mnewman](https://www.epiusers.help/user_avatar/www.epiusers.help/mnewman/32/25152_2.png) [@mnewman](https://www.epiusers.help/u/mnewman)\
**Post date:** [April 4, 2019, 4:27pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/3 "2019-04-04T16:27:37Z")

</div>

I apologize

The error I get is: Identifier expected  
It is referring to [“BISDocReq\_c”]

---

<div class="post-metadata">

**Author:** ![Aaron\_Moreng](https://www.epiusers.help/user_avatar/www.epiusers.help/aaron_moreng/32/745_2.png) [@Aaron\_Moreng](https://www.epiusers.help/u/Aaron_Moreng)\
**Post date:** [April 4, 2019, 4:28pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/4 "2019-04-04T16:28:31Z")

</div>

try putting the type in front of it

`(DateTime)ttCustomerRow["BISDocExpDate_c"]`

Edited per @hmwillett 's response

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [April 4, 2019, 4:29pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/5 "2019-04-04T16:29:44Z")

</div>

Take the period out.  
It should be:

```auto
ttCustomerRow["BISDocExpDate_c"]

```

---

<div class="post-metadata">

**Author:** ![mnewman](https://www.epiusers.help/user_avatar/www.epiusers.help/mnewman/32/25152_2.png) [@mnewman](https://www.epiusers.help/u/mnewman)\
**Post date:** [April 4, 2019, 4:30pm UTC](https://www.epiusers.help/t/bpm-custom-code/54324/6 "2019-04-04T16:30:30Z")

</div>

You are my Hero!!

The two suggestions together did it!!

Thank you!
