Posts

Showing posts with the label BizTalk Custom Datatype

Can We Have Custom Data Type In BizTalk

Image
Well I got this question when I had to have data in some specific pattern. A very common field is email address where we want it in particular and valid pattern, e.g., “myemail@mydomain.com” So here is the pattern I used :   \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* In my case along with the email field  it was the field called “fileExtension”, and the only extension which was valid as per requirement where  .txt , .pdf , .xsl ,.xslx,.doc and .docx  etc. So here is the pattern I used : ^.*\.(txt|TXT|xsl|XSL|xslx|XSLX|doc|DOC|docx|DOCX|pdf|PDF)$ Note:   You can add other extensions too if you need it, in my case above mentioned ones were the only required. Steps to make it happen (Here I am using email as example): 1.      Open the schema in BizTalk Schema Editor 2.      Select the element on  which you want to set the desired data pattern 3.      Go to properties window. ...