
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 05:48 AM
Hi everyone,
So my organization bought the HR Service Delivery module and is planning to leverage the HR Service Portal. After some time tinkering on it, I noticed that there is the Content Delivery (CD) widgets that are really nice, like video carousel, announcements, calendars, etc. BUT I am not sure why these widgets are not working as expected in the HR Service Portal ( ESC - employee service portal).
Can someone explain to me why these are not working? I even tried cloning the Video Carousel widget and on the server script it's calling the cd_ContentDelivery.getContentForWidgetInstance() function which according to Service Portal does not exist.
Regards,
James
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2020 12:12 AM
Hi Andre & Chris,
Thanks for your input; I have fixed this issue and found the problem. Chris is correct, for the ESC the content management widgets should be used and can easily duplicated depending on the content types (i.e. videos, calendar, quick links, etc.). My problem was that the Instance field I was using was empty and the new content widget I created is not associate to that Instance field. I just overlooked this component, it's just as trivial as that.
Regards,
James

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 07:40 PM
Hi James,
I've had a quick look and I believe the issue you are seeing is due to cross-scope access.
The original widget (Video Carousel (CD)) is in the Content Delivery application scope, and (I'm guessing, because I did the same thing) you may have cloned it to the Global scope. The line of script that is failing calls the "cd_ContentDelivery" script include which is in the Content Delivery scope, and can't be accessed from other scopes.
I have had a play and couldn't get this working on my PDI, but hopefully it points you in the right direction. You could maybe reverse-engineer the script include into a Global one or pull out the code you like from the widget and skip the HR Content Delivery side of it, maybe make a simple Youtube widget.
Hope that helps a bit,
Andrew

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 08:46 AM
Hi Andrew,
That's what I am suspecting, rather than recreating the script I am thinking of using it instead. I am still in the planning phase of my Employee Service Center implementation. Given that this video carousel widget is within the Content Delivery, does this mean that it would be separated form HR Service Portal? I am still confuse as ti why the Content Delivery and HR Service Portal plugins are separated and are scoped applications.
Regards,
James

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 08:01 PM
Hey James,
Most of the time things are in separate scopes because they are not always enabled together 100% of the time, and ServiceNow wants to ability to update and manage things seperate from the "parent" scope. It doesn't mean that Content Delivery is not on the HR Service Portal, but it may not be 100% of the time.
You can definitely use it inside it's scope, but the portal can be a little temperamental. You may find it easier to create a whole new page inside the Content Delivery scope to place those widgets so they work, but I haven't tested this.
Hopefully you can work it out.
- Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 05:25 AM
ESC does use Content Delivery widgets baseline. No modifications to those widgets should be needed.
If new data needs to be added with a content delivery widget then simply pull that widget onto a page.
Then go to the Portal Content module under Content Delivery and make new content such as a banner or announcement, I believe carousel action is default. Then after creating the content in the related list point to the page the content needs to render on.