AnsweredAssumed Answered

Query regarding bool fields in MosSubscription custom object

Question asked by 629fe46ee660abfd765674f1e6a0086b7ee4e13c on Nov 17, 2016

We are seeing inconsistent behavior when retrieving custom
object data. Below are the inputs and outputs.

 

Custom Object: mosSubscription

Description about the behavior: I’m creating mosSubscription custom object with inputs as mentioned below.

When I created custom object “rose2sub” with the input in
Input1 where I did not give any values for bool fields “isEXO” and “isVisio”,
in UI it has shown that that bool fields isEXO and isVisio are false. When I
retrieved the custom object using API call, it is giving null for the same
fields. Same is with other bool fields which are not mentioned in input.

With same data I created custom object “****2sub” mentioned
below in Input2. In UI it is showing as false. In API call also, the values are
false. I highlighted the fields and attached the screenshots.

 

Please help me in understanding below things:

  1. Is
    there any default value for Boolean fields.
  2. How
    Marketo internally behaves if the properties having bool data type are not
    given in input
  3. Why
    the values in UI and API call are not same.
  4. Why
    there is inconsistency in the behavior of these fields as in sometimes it is
    false and sometimes it is null.

 

I’m using One GDC PPE instance of Marketo (https://167-MMR-909.mktorest.com)

Input1:

{

          
"hasPOR": false,

          
"isTrialSubscription": true,

          
"subscriptionTypeName": "Trial",

          
"tenantId": "f79255d7d0e64ffdb866f1b8f1494123",

          
"offerId": "B07A1127-DE83-4A6D-9F85-2C104BDAE8B4",

          
"offerProductFamily": "IsOffice365",

          
"offerProductName": "Office 365 Enterprise E3 Trial",

          
"subscriptionCreatedDate": "2016-08-09T23:29:33Z",

          
"includedQuantity": 122,

          
"orderId": "f63c4469ac194268b33b0f24e5ea28df",

          
"subscriptionEndDate": "2016-09-08T00:00:00Z",

   
       "subscriptionId":
"rose2sub",

          
"subscriptionStartDate": "2016-08-09T00:00:00Z",

          
"subscriptionCurrentStatus": "Active",

          
"subscriptionUpdatedDate": "2016-08-09T23:31:18Z",

"leadId": "4349878"

          }

 

Output1:

{

  "requestId": "2301#158707e9883",

  "result": [

    {

      "seq": 0,

      "marketoGUID":
"cef79c50-7052-43a5-a4fd-d152ac87281e",

      "includedquantity":
122,

      "subscriptionid":
"rose2sub",

      "isspo": null,

    
"subscriptionenddate": "2016-09-08T00:00:00Z",

      "offerid":
"B07A1127-DE83-4A6D-9F85-2C104BDAE8B4",

      "offername": null,

    
"subscriptionupdateddate": "2016-08-09T23:31:18Z",

      "orderid":
"f63c4469ac194268b33b0f24e5ea28df",

      "offerproductname":
"Office 365 Enterprise E3 Trial",

      "isvisio": null,

      "isyammer": null,

      "tenantid":
"f79255d7d0e64ffdb866f1b8f1494123",

      "haspor": false,

    
"offerproductfamily": "IsOffice365",

      "isodb": null,

      "subscriptiontypename":
"Trial",

      "leadid":
"4349878",

      "isproject": null,

      "isproplus": null,

      "islyo": null,

      "globaladminlogin":
null,

    
"subscriptionstartdate": "2016-08-09T00:00:00Z",

    
"subscriptioncreateddate": "2016-08-09T23:29:33Z",

    
"istrialsubscription": true,

      "isexo": null,

    
"subscriptioncurrentstatus": "Active",

      "partnerid": null

    }

  ],

  "success": true

}

 

Input2:

{

          
"hasPOR": false,

          
"isTrialSubscription": true,

          
"subscriptionTypeName": "Trial",

          
"tenantId": "f79255d7d0e64ffdb866f1b8f1494123",

          
"offerId": "B07A1127-DE83-4A6D-9F85-2C104BDAE8B4",

          
"offerProductFamily": "IsOffice365",

          
"offerProductName": "Office 365 Enterprise E3 Trial",

          
"subscriptionCreatedDate": "2016-08-09T23:29:33Z",

          
"includedQuantity": 122,

          
"orderId": "f63c4469ac194268b33b0f24e5ea28df",

          
"subscriptionEndDate": "2016-09-08T00:00:00Z",

          
"subscriptionId": "****2sub",

          
"subscriptionStartDate": "2016-08-09T00:00:00Z",

        
  "subscriptionCurrentStatus": "Active",

          
"subscriptionUpdatedDate": "2016-08-09T23:31:18Z",

"leadId":
"4349870"

 

          }

 

Output2:

{

  "requestId": "d14#1587079fc85",

  "result": [

    {

      "seq": 0,

      "marketoGUID":
"bf8a4a23-1941-46ef-b5cf-adc0c68c2d2f",

      "includedquantity":
122,

      "subscriptionid":
"****2sub",

      "isspo": false,

    
"subscriptionenddate": "2016-09-08T00:00:00Z",

      "offerid":
"B07A1127-DE83-4A6D-9F85-2C104BDAE8B4",

      "offername": null,

    
"subscriptionupdateddate": "2016-08-09T23:31:18Z",

      "orderid":
"f63c4469ac194268b33b0f24e5ea28df",

      "offerproductname":
"Office 365 Enterprise E3 Trial",

      "isvisio": false,

      "isyammer": false,

      "tenantid":
"f79255d7d0e64ffdb866f1b8f1494123",

      "haspor": false,

    
"offerproductfamily": "IsOffice365",

      "isodb": false,

    
"subscriptiontypename": "Trial",

      "leadid":
"4349870",

      "isproject": false,

      "isproplus": false,

      "islyo": false,

      "globaladminlogin":
null,

    
"subscriptionstartdate": "2016-08-09T00:00:00Z",

    
"subscriptioncreateddate": "2016-08-09T23:29:33Z",

    
"istrialsubscription": true,

      "isexo": false,

    
"subscriptioncurrentstatus": "Active",

      "partnerid": null

    }

  ],

  "success": true

}


Outcomes