BPM Custom Code

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")  ; 
                }

}

What’s not working? Unclear from your question

I apologize

The error I get is: Identifier expected
It is referring to [“BISDocReq_c”]

try putting the type in front of it

(DateTime)ttCustomerRow["BISDocExpDate_c"]

Edited per @hmwillett 's response

Take the period out.
It should be:

ttCustomerRow["BISDocExpDate_c"]
1 Like

You are my Hero!!

The two suggestions together did it!!

Thank you!

1 Like