Welcome to the SAP HANA Academy. My name's Bob and in this video series from the SAP HANA Academy
and Digital Partner eEgineering, we'll be looking at SAP Fieldglass integration. In this video we're
going to be looking at creating job posings in Postman using APIs, or SAP Fieldglass connectors.
In the previous video we looked at the steps needed to set up oAuth2 when using
SAP Fieldglass and Postman. Again the way oAuth works is that it doesn't share password data
but instead uses authorization tokens to prove an identity between consumers and service providers.
Again when we run that GET access token post, we automatically allocated the access token
as a new environment variable. So now we need to create that job posting using UploadJP post.
If we look at it -- let's go and look at the post itself. We're of course using the
SAP Fieldglass tenant. At the end of the URL we're specifying jobposting_upload
(which is the name of our connector that we created). If we go to our headers, we're
specifying that the content type is JSON and in terms of the authorization, what we need to do is
concatenate bearer space with our access token environment variable. In terms of authorization,
we don't need to put anything here. We've allocated the authorization via that bearer token.
We don't need any parameters, we just need to now deal with the body of the text.
So if we look at the text, it looks like this. Again it's all explained in that connector
library pdf file . One of the things that might not be there is that you'll need to add what's called
an "application interface key" and this value just means we're doing some testing which is "saptext10"
When you're sending a post you'll have to include your own application interface key.
On the screen now you should see a link to a video which shows you how to get
your application interface key which is specific to the application that you've built.
These are the various headers and this is the actual data. You've got things like the
location code, start date, the currency of the rates that's being paid. Most importantly for
us is the name of the job posting which is "IT consultant - USA." You've got the hours per day,
you've got other information as well. such as the owner's username. Again, whether a
column or is mandatory or not is all explained in that SAP Fieldglass Connector Library document.
For us, there's one thing that we'll need to change in order to know that we're making a new
post. W e've defined our headers and we've included the application interface key. In terms of
the data, what we're going to do is change this external job posting ID (at the moment it's bb004).
So what we want to do is note that we've created a new job posting. So how are we going to do that?
Well if i go back to my SAP Fieldglass system , what we can do is go back to our user interface.
On our home page, if i click on home, we're in the integration tools.
within our self-service dashboard. We'll connect to our administrator account.
This is the front end of the user perspective,
so what i'll do is i'll go to view and i'll select job postings.
If you remember from the first video, if i sort by the ID,
the last internal id ended with the characters 63 and we closed this actual job position manually.
Now we can see this if we go to the details.
If i scroll to the bottom, we have a section called "posting information" which includes who
made the post, the date of the post, and also we have a externalID - which here is bb07.
Again we manually close this position, you can see that at the bottom in our list of comments that
was done a few days ago. So we know we've got a closed job position that exists in SAP Fieldglass.
If i go back to my job posting list, what we can do is go and post that job posting.
So again, what i'll do is i'll sort
and then we'll go back to Postman and we'll post. So nothing else we have to change here
apart from that external posting ID -- just to make it incrementally higher. So i'll put bb008.
Nothing else that we need to change, so all I need to do is click on Send to upload this job posting.
Here we can see confirmation that the number of uploaded records equals one.
It's completed uploading those records based on that external job posting ID which is 08.t
Again if we go back all I need to do now is refresh this list
and here we can see our newly submitted job posting which ends with id 64. Just
like before, we can look at the details and to ensure that we've actually posted the right
job posting. If we go to details, what we want to look at is the posting information. Of course
we've got the date but what we should see is the externalID ends with bb008 and it was posted
today. Another indicator that it works is if i go back to Postman and try and re-post using the same
external job postingID, it should fail or give us a message that the ID has already been used .
Here we can see the external job posting ID you entered is already in use .
To summarize, what we did is we posted some data to SAP Fieldglass using a connector or an API.
All the configuration parameters are easily available to us within the SAP Fieldglass connector library.
So again you've got all the columns which need to be included
when you send that post to the connector. -- for both the header and the detailed columns.
The only last thing to show is that we can utilize the monitor tile within integration tools.
We can see that we've made two posts on july the 5th and if we go to that first post, we can see this is
the one where we were trying to insert a duplicate record. Here you can see the server message is that
the ID is already in use. But if we go to the previous one on the same day and we scroll down
to get the details here we can see that the number of uploaded records is working and is set at 1..
So I hope you enjoyed that short video series on how to use some of the integration tools
within the SAP Fieldglass Configuration Manager.