Closed4
Salesforce REST API - Trial to Describe SObject that Field Level Security difference
参考
Add field to Account
- New Filed
- Name:
extra_type
- Name:
Via Object Manager
Setting Field Level Security
- Field Level Security
- System Administrator (システム管理者): enabled
- Standard User (標準ユーザ): disabled
Get Account describe by System Administrator
Requet to REST API
curl -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer ${access_token}" "${instance_url}/services/data/v58.0/sobjects/Account/describe/" | jq . > Account_describe_by_admin.json
Confirm fields list
cat Account_describe_by_admin.json | jq '.fields[].name'
-
extra_type__c
exist.
output
"Id"
"IsDeleted"
"MasterRecordId"
"Name"
"Type"
"ParentId"
"BillingStreet"
"BillingCity"
"BillingState"
"BillingPostalCode"
"BillingCountry"
"BillingLatitude"
"BillingLongitude"
"BillingGeocodeAccuracy"
"BillingAddress"
"ShippingStreet"
"ShippingCity"
"ShippingState"
"ShippingPostalCode"
"ShippingCountry"
"ShippingLatitude"
"ShippingLongitude"
"ShippingGeocodeAccuracy"
"ShippingAddress"
"Phone"
"Fax"
"AccountNumber"
"Website"
"PhotoUrl"
"Sic"
"Industry"
"AnnualRevenue"
"NumberOfEmployees"
"Ownership"
"TickerSymbol"
"Description"
"Rating"
"Site"
"OwnerId"
"CreatedDate"
"CreatedById"
"LastModifiedDate"
"LastModifiedById"
"SystemModstamp"
"LastActivityDate"
"LastViewedDate"
"LastReferencedDate"
"Jigsaw"
"JigsawCompanyId"
"CleanStatus"
"AccountSource"
"DunsNumber"
"Tradestyle"
"NaicsCode"
"NaicsDesc"
"YearStarted"
"SicDesc"
"DandbCompanyId"
"OperatingHoursId"
"extra_type__c"
Get Account describe by Standard User
Requet to REST API
curl -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer ${access_token}" "${instance_url}/services/data/v58.0/sobjects/Account/describe/" | jq . > Account_describe_by_standard.json
Confirm fields list
cat Account_describe_by_standard.json | jq '.fields[].name'
-
extra_type__c
does not exist.
output
"Id"
"IsDeleted"
"MasterRecordId"
"Name"
"Type"
"ParentId"
"BillingStreet"
"BillingCity"
"BillingState"
"BillingPostalCode"
"BillingCountry"
"BillingLatitude"
"BillingLongitude"
"BillingGeocodeAccuracy"
"BillingAddress"
"ShippingStreet"
"ShippingCity"
"ShippingState"
"ShippingPostalCode"
"ShippingCountry"
"ShippingLatitude"
"ShippingLongitude"
"ShippingGeocodeAccuracy"
"ShippingAddress"
"Phone"
"Fax"
"AccountNumber"
"Website"
"PhotoUrl"
"Sic"
"Industry"
"AnnualRevenue"
"NumberOfEmployees"
"Ownership"
"TickerSymbol"
"Description"
"Rating"
"Site"
"OwnerId"
"CreatedDate"
"CreatedById"
"LastModifiedDate"
"LastModifiedById"
"SystemModstamp"
"LastActivityDate"
"LastViewedDate"
"LastReferencedDate"
"Jigsaw"
"JigsawCompanyId"
"CleanStatus"
"AccountSource"
"DunsNumber"
"Tradestyle"
"NaicsCode"
"NaicsDesc"
"YearStarted"
"SicDesc"
"DandbCompanyId"
"OperatingHoursId"
このスクラップは2023/09/10にクローズされました