|
How to automatically set submitter contact when a record producer is
|
|
How to automatically set submitter contact when a record producer is submitted
|
|
submitted
|
|
|
|
|
|
|
|
When cases are created from record producers, the field "submitter
|
|
When cases are created from record producers, the field “submitter contact” is not automatically set. The logic for setting the submitter automatically must be configured by the process designer. This user guide is relevant if you want the user who submitted the case to be automatically set as the submitter of the case as well.
|
|
contact" is not automatically set. The logic for setting the submitter
|
|
|
|
automatically must be configured by the process designer. This user
|
|
|
|
guide is relevant if you want the user who submitted the case to be
|
|
|
|
automatically set as the submitter of the case as well.
|
|
|
|
|
|
|
|
The procedure is to open the record producer in Studio and hard code the
|
|
The procedure is to open the record producer in Studio and hard code the field “channel” to “portal”, which in turn gets the users contact person object and adds it to the case.
|
|
field "channel" to "portal", which in turn gets the users contact person
|
|
|
|
object and adds it to the case.
|
|
|
|
|
|
|
|
**Prerequisite**:
|
|
**Prerequisite**:
|
|
|
|
|
... | @@ -17,8 +10,7 @@ object and adds it to the case. |
... | @@ -17,8 +10,7 @@ object and adds it to the case. |
|
|
|
|
|
2. User has English as preferred language
|
|
2. User has English as preferred language
|
|
|
|
|
|
3. User has created an application like the one in user guide 15.2 "How
|
|
3. User has created an application like the one in user guide 15.2 “How to define a new process”
|
|
to define a new process"
|
|
|
|
|
|
|
|
4. [The application contains a record producer]{.underline}[^1]
|
|
4. [The application contains a record producer]{.underline}[^1]
|
|
|
|
|
... | @@ -26,8 +18,7 @@ object and adds it to the case. |
... | @@ -26,8 +18,7 @@ object and adds it to the case. |
|
|
|
|
|
1. Navigate to the process you wish to define
|
|
1. Navigate to the process you wish to define
|
|
|
|
|
|
a. In the filter navigator, go to: **UH Core** \> **FUP** \>
|
|
a. In the filter navigator, go to: **UH Core** \> **FUP** \> **FUP**
|
|
**FUP**
|
|
|
|
|
|
|
|
b. Search your way to the process you wish to define[^2]
|
|
b. Search your way to the process you wish to define[^2]
|
|
|
|
|
... | @@ -35,33 +26,21 @@ object and adds it to the case. |
... | @@ -35,33 +26,21 @@ object and adds it to the case. |
|
|
|
|
|
2. Click «**Edit in AES**»
|
|
2. Click «**Edit in AES**»
|
|
|
|
|
|
3. Click the cogwheel "**Edit application properties**"
|
|
3. Click the cogwheel “**Edit application properties**”
|
|
|
|
|
|
4. Click "**Open app in Dev Studio**"
|
|
4. Click “**Open app in Dev Studio**”
|
|
|
|
|
|
5. Open the record producer\
|
|
5. Open the record producer\
|
|
{width="2.4579680664916888in" height="3.039423665791776in"}
|
|
with medium
|
|
|
|
confidence](uploads/./15.5-EN-How-to-automatically-set-submitter-when-the-record-producer-is-submitted-v1/media/image1.png){width="2.4579680664916888in"
|
|
6. In the field “Script”, add a line:\
|
|
height="3.039423665791776in"}
|
|
current.channel='portal';\
|
|
|
|
{width="4.6875in" height="2.0in"}
|
|
6. In the field "Script", add a line:\
|
|
|
|
current.channel=\'portal\';\
|
|
7. Click “**Update**”
|
|
{width="4.6875in"
|
|
|
|
height="2.0in"}
|
|
The result is that when new cases are created with the record producer, the submitter of the case is automatically set as the submitter of the case.
|
|
|
|
|
|
7. Click "**Update**"
|
|
[^1]: If the application doesn’t have a record producer, you can follow the user guide [here](https://docs.servicenow.com/bundle/tokyo-application-development/page/build/app-engine-studio/task/add-a-record-producer.html), to create a new one.
|
|
|
|
|
|
The result is that when new cases are created with the record producer,
|
|
[^2]: From the list you are only able to see the functions. You can open the function and find the subfunction in the related list: “Function analysis” to navigate down the hierarchy. There are 3 levels in total, and in the last level, you will find the processes. |
|
the submitter of the case is automatically set as the submitter of the
|
|
|
|
case.
|
|
|
|
|
|
|
|
[^1]: If the application doesn't have a record producer, you can follow
|
|
|
|
the user guide
|
|
|
|
[here](https://docs.servicenow.com/bundle/tokyo-application-development/page/build/app-engine-studio/task/add-a-record-producer.html),
|
|
|
|
to create a new one.
|
|
|
|
|
|
|
|
[^2]: From the list you are only able to see the functions. You can open
|
|
|
|
the function and find the subfunction in the related list: "Function
|
|
|
|
analysis" to navigate down the hierarchy. There are 3 levels in
|
|
|
|
total, and in the last level, you will find the processes. |
|
|