GraphQLRepositorieswebresource
entities.webresource
Read webresource records with the webresource repository, and change them with the webresource mutations. Same records as the REST Webresources entity.
- 7 queries
- 0 mutations
- REST: Webresources
Queries
Fields of entities { webresource { … } }.
| Kind | Field | Returns |
|---|---|---|
| QUERY | getById(entityId: ID!)Returns the record with the given id, or null when there is none. Deleted records are returned as well. | WebresourceEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [WebresourceEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [WebresourceEntity!]! |
| QUERY | getByCriteria(filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | WebresourceEntityConnection |
| QUERY | getPublished(limit: Int, offset: Int, filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!], includeDeleted: Boolean)Returns the published records that match the filter, paged with limit and offset. | [WebresourceEntity!]! |
| QUERY | getDrafts(filter: WebresourceFilterInput, orderBy: [WebresourceOrderByInput!])Returns the records that match the filter, with pending unpublished changes applied where a draft exists. | [WebresourceEntity!]! |
| QUERY | getDraftById(entityId: ID!)Returns the record with the given id, with its pending unpublished changes applied when a draft exists. | WebresourceEntity! |
Types
The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.
WebresourceEntity object 14 fields: isDeleteProtected, hasDraft, id, …
Web page embedded in the app for records of an entity, with its URL filled from the record's field values.
| Field | Type | Description |
|---|---|---|
isDeleteProtected | Boolean! | True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only. |
hasDraft | Boolean | True when the record has unpublished draft changes, including pending translation changes, that can be published. |
id | ID! | Unique identifier of entity. |
isDeleted | Boolean | Specifies if the entity is considered deleted. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
displayParam | Int! | Bit flag controlling how the web resource is displayed (e.g. full-screen, in a tab). |
entity | String! | Name of the entity the web resource is attached to (e.g. "Account", "Lead"). |
name | String! | Name of the entity and its default text representation. |
requestMethod | RequestMethodEnum | HTTP method (Get or Post) used to open the url of the web resource. |
url | String | URL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values. |
isPublished | Boolean | True when the web resource is published; false while it exists only as an unpublished draft. |
revision | Int | Revision when entity was lastly changed. |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
WebresourceEntityConnection object pageInfo: PageInfo!, edges: [WebresourceEntityEdge]!, totalCount: Int
Paginated list of Webresource records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [WebresourceEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
WebresourceEntityEdge object node: WebresourceEntity, cursor: String!
A Relay edge containing a WebresourceEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | WebresourceEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
DisplayParamEnumFilterInput input eq: [DisplayParamEnum!], NOT: DisplayParamEnumFilterInput
Conditions on an enumeration field. Several conditions given together must all match.
| Input field | Type | Description |
|---|---|---|
eq | [DisplayParamEnum!] | Matches any of the listed values. |
NOT | DisplayParamEnumFilterInput | Matches values that do not meet this condition. |
RequestMethodEnumFilterInput input eq: [RequestMethodEnum!], NOT: RequestMethodEnumFilterInput
Conditions on an enumeration field. Several conditions given together must all match.
| Input field | Type | Description |
|---|---|---|
eq | [RequestMethodEnum!] | Matches any of the listed values. |
NOT | RequestMethodEnumFilterInput | Matches values that do not meet this condition. |
WebresourceFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for Webresource records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [WebresourceFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [WebresourceFilterInput!] | Matches records that meet all of the listed filters. |
NOT | WebresourceFilterInput | Matches records that do not meet this filter. |
globalSearchQuery | String | Search term matched against the fields that the global search covers for this entity. |
id | EntityFilterStringField | Unique identifier of entity. |
isDeleted | Boolean | Specifies if the entity is considered deleted. |
modified | EntityFilterDateTimeField | Last modification time. |
created | EntityFilterDateTimeField | Creation time. |
displayParam | DisplayParamEnumFilterInput | Bit flag controlling how the web resource is displayed (e.g. full-screen, in a tab). |
entity | EntityFilterStringField | Name of the entity the web resource is attached to (e.g. "Account", "Lead"). |
name | EntityFilterStringField | Name of the entity and its default text representation. |
requestMethod | RequestMethodEnumFilterInput | HTTP method (Get or Post) used to open the url of the web resource. |
url | EntityFilterStringField | URL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values. |
isPublished | Boolean | True when the web resource is published; false while it exists only as an unpublished draft. |
revision | EntityFilterNumberField | Revision when entity was lastly changed. |
WebresourceOrderByInput input Asc or Desc per field
Sorting of Webresource records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.
| Input field | Type | Description |
|---|---|---|
id | OrderByEnum | Unique identifier of entity. |
isDeleted | OrderByEnum | Specifies if the entity is considered deleted. |
modified | OrderByEnum | Last modification time. |
created | OrderByEnum | Creation time. |
name | OrderByEnum | Name of the entity and its default text representation. |
requestMethod | OrderByEnum | HTTP method (Get or Post) used to open the url of the web resource. |
url | OrderByEnum | URL template for the embedded web resource. May reference field values via "{#<fieldId>}" placeholders that are substituted with the current record's values. |
isPublished | OrderByEnum | True when the web resource is published; false while it exists only as an unpublished draft. |
revision | OrderByEnum | Revision when entity was lastly changed. |
DisplayParamEnum enum FullScreen, DoNotShowIfEmpty
Display flags of a web resource embedded in a record's detail; values can be combined.
| Value | Description |
|---|---|
FullScreen | The web resource is displayed in full-screen mode. |
DoNotShowIfEmpty | The web resource is hidden when all record values inserted into its URL are empty. |
RequestMethodEnum enum Get, Post
HTTP method used to open a web resource's URL.
| Value | Description |
|---|---|
Get | The URL is opened with a GET request. |
Post | The URL is opened with a POST request. |