Demo Video:
Steps are as follows,
- Go to Google cloud platform
- Login with your Google user id and password
- Create a billing account
- Create a project
- Link the project and the billing account
- Search the API and enable it
- Create a credential and get the API key
- Create a case in Pega
- Take a Field as Location and take the Data type as Location
- Search the Dynamic System Settings (DSS) – Google api key- Update the Value with the API Key
- Run the Case Type
Go to Google Cloud Platform and click Sign In
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-69.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-70.png)
Login with your id and password and Click Console on top right corner
Click Billing
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-71.png)
Manage Billing Account
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-72.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-73.png)
Add Billing Account
Add your billing account as instructed.
Once done please search for Google Maps
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-74.png)
Click APIs
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-75.png)
Select Maps JavaScript API
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-76.png)
Click Enable
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-77.png)
Then click Credentials from the left menu
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-78.png)
Now click ‘+Create Credentials’ to get the API key
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-79.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-80.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-81.png)
Now go to Pega :
Create a case type
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-62.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-63.png)
Location field – Data type is Location – so it understands that Google map to embed
Add the API key in the DSS setting – search for Google
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-64.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-65.png)
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-67.png)
Run the Case
![](https://mypegapoc.com/wp-content/uploads/2022/06/image-68.png)
Type any location and click outside – the map will pin to that location.
Pls check the demo video
Please try this and have fun. 🙂