I was trying to write the code for extracting the Publish Link URL or 2PACX### code for any given Google Slide ID.
I am using Google Apps Script to write this code. I am able to extract the Google Slide File ID, but unable to extract the code from the published URL of the Google Slide. What could be a good solution to achieve this using Google Apps Script?