from simple_salesforce import Salesforce
sf = Salesforce(username='username@username.com', password='XpasswordX', security_token='XtokenX', sandbox=False)
#this is a specific contact record type id as layouts depend on the record type
record_type_id = '01258023423c9gYBAQ'
layout = sf.Contact.describe_layout(record_type_id)
这应该可以通过simple_salesforce实现,下面的示例假设我们使用的是联系人
这将为您提供数据的json版本,而不是xml,但结构与此处所示相同:https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_layouts.htm
示例
layout['buttonLayoutSection']
相关问题 更多 >
编程相关推荐