Originally Posted by
nael_najib
Hello All again,
The codes above actually worked properly but i encountered another problem. sometimes, the field HZINumbers doesn't appear in the line and i want the default value for such case to be "0". how can i do that?
---------- Post updated at 04:05 AM ---------- Previous update was at 03:37 AM ----------
The below is an example:
Read:RPP(CustomerId="961666666666",OfferProfileKey=1,Key=7,category=ONLINE,prefetchFilter=-1,s_ActivationEndTime=32532613199999,s_ActivationStartTime=1459112400000,s_CRMTitle="-",s_CanBeSharedByMultipleRops=FALSE,s_InsertedViaBatch=TRUE,s_PackageId="HomeZone",s_PeriodStartPoin t=0,vValidFrom=2016-03-28 00:00:00,vInvalidFrom=4000-01-01 00:00:00,s_FreeOfChargeModifyTasks=0,s_HZINumbers=["17103","10803","100000","200000","300000"],s_PeriodicBonus={CreditLimit=0,CreditMax=1000000},s_Touched=TRUE,bCategory=ONLINE,bSeriesId=0,bVali dFrom=2009-01-01 00:00:00,bInvalidFrom=MAX_DATEANDTIME,s_Active=TRUE,s_ExpireDate=3000-01-01,s_FreeOfChargePeriods=0,s_NextPeriodAct=32532613199999,s_OnTouchDate=32532613199999,s_StartDate=1 970-01-01,s_Valid=TRUE);
Read:RPP(CustomerId="961666666662",OfferProfileKey=1,Key=7,category=ONLINE,prefetchFilter=-1,s_ActivationEndTime=32532613199999,s_ActivationStartTime=1459112400000,s_CRMTitle="-",s_CanBeSharedByMultipleRops=FALSE,s_InsertedViaBatch=TRUE,s_PackageId="HomeZone",s_PeriodStartPoin t=0,vValidFrom=2016-03-28 00:00:00,vInvalidFrom=4000-01-01 00:00:00,s_FreeOfChargeModifyTasks=0,,s_PeriodicBonus={CreditLimit=0,CreditMax=1000000},s_Touched=TR UE,bCategory=ONLINE,bSeriesId=0,bValidFrom=2009-01-01 00:00:00,bInvalidFrom=MAX_DATEANDTIME,s_Active=TRUE,s_ExpireDate=3000-01-01,s_FreeOfChargePeriods=0,s_NextPeriodAct=32532613199999,s_OnTouchDate=32532613199999,s_StartDate=1 970-01-01,s_Valid=TRUE);
as you can see, in the first line the HZINumbers field is appearing but in the second line its not appearing and for that i don't get any result for the second line although the CustomerId and s_packageid are there.
and i want the output to be:
961666666666|"HomeZone"|"17103","10803","100000","200000","300000"
961666666662|"HomeZone"|0