moussa-e
2/3/2017 - 6:54 AM

Scribe #Scribe #Functions #MoussaElAnnan

Scribe #Scribe #Functions #MoussaElAnnan

//Gets the objectrecordname from the scribe internal database and transform it to a CRM ouput.
XREFLOOKUPINTERNAL("objectrecordname", S17)
//Create Calculate Variable and use the STRIP() Function
IF(LEFT(STRIP_PHONE, 4) = "0032",
	STRIP_PHONE
	,
	IF(LEFT(STRIP_PHONE, 3) = "+32", 
		 REPLACE(STRIP_PHONE,1,3,"0032")
		,
		IF(LEFT(STRIP_PHONE, 1) = "0", 
			 REPLACE(STRIP_PHONE,1,1,"0032")
			,
			IF(LEFT(STRIP_PHONE, 2)  = "00",
				 REPLACE(STRIP_PHONE,1,2,"0032")
				 ,
				 IF(LEFT(STRIP_PHONE, 2)  = "32",
					REPLACE(STRIP_PHONE,1,2,"0032"),S293
					)
			  )
		  )
	  )
  )