Question for nerds regarding favorites (you know who you are) | Community
Skip to main content
RandyRoberts
Community Advisor
Community Advisor
May 27, 2021
Solved

Question for nerds regarding favorites (you know who you are)

  • May 27, 2021
  • 3 replies
  • 1130 views

Since tabs have gone away in NWE, I've been searching for a way to push favorites to users. I don't want to clog up a users nav bar with reports and dashboards, etc. but I want some teams, roles, etc. to have quick access to some things. I think favorites is the way to do that.

It's been a little spare time project of mine for a few weeks.

It seems to be in the user metadata:

"favorites": {

"label": "Favorites",

"typeObjCode": "FVRITE",

"targetTypeObjCode": null,

"fieldType": "Favorite",

"enumTargetObjCode": null,

"enumType": null,

"url": "https://company.my.workfront.com/attask/api/v13.0/fvrite/metadata"

},

but there's really no way I've found to put to it from an API call. If I had the right code I could possibly put a favorite to a user. Or, better than that, use Fusion 2 to push favorites according to teams, groups roles, etc.

I mapped out the structure of the favorite here:

https://company.my.workfront.com/attask/api/v12.0/favorite/5e9b570100fc6bc9e55422d14f396df2/search?fields=*

{

"ID": "5e9b570100fc6bc9e55422d14f396df2",

"name": "EG Dashboard",

"objCode": "FVRITE",

"customerID": "5731f662003e348aaef9b720a2b190cd",

"objID": "57b3723001e3d8e99b465892d5258210",

"objObjCode": "PTLTAB",

"userID": "5e2ef17a000e86977aeccba89b685154"

}

"ID": ID of the favorite

"name": Name of the favorite (Label)

"objCode": Object type

"customerID": your company Customer ID

"objID": ID of the target object

"objObjCode": Target object type

"userID": ID of the user who is getting the favorite

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by William--

Hi Randy,

If you're dead set on force-adding favorites to user profiles, I have your API call. It can definitely come in handy for certain situations.

Your question speaks to a bigger problem of "how do I push and maintain a persistent view of objects to users that is dynamic and relevant to each viewer?" Force-adding favorites is one method, but many Workfront customers aren't savvy enough with the API to be able to do that. We've settled on a concept that we call "publishing objects." I won't get into the details of that here, but if folks are interested let me know and I may make time to post the details in a separate thread.

With that out of the way, here you go:

METHOD=POST

https://company.my.workfront.com/attask/api/v13.0/FVRITE?userID=5c4xxx0c0&objObjCode=PROJ&objID=5c4xxx452

Just swap out the userID, account for the correct object type in objObjCode, and plug in the object's ID.

Enjoy!

3 replies

Level 10
May 28, 2021

Instead of Favorites, what about a dashboard that uses Add External Page links with a height of "1"?

That's assuming you're trying to push the same batch of "favorites" to multiple people.

RandyRoberts
Community Advisor
Community Advisor
May 28, 2021

I already do that but it still takes up a space on the nav bar. Since it's just a database, I should be able to POST to it and get to the favorites.

William--
Community Advisor
William--Community AdvisorAccepted solution
Community Advisor
May 28, 2021

Hi Randy,

If you're dead set on force-adding favorites to user profiles, I have your API call. It can definitely come in handy for certain situations.

Your question speaks to a bigger problem of "how do I push and maintain a persistent view of objects to users that is dynamic and relevant to each viewer?" Force-adding favorites is one method, but many Workfront customers aren't savvy enough with the API to be able to do that. We've settled on a concept that we call "publishing objects." I won't get into the details of that here, but if folks are interested let me know and I may make time to post the details in a separate thread.

With that out of the way, here you go:

METHOD=POST

https://company.my.workfront.com/attask/api/v13.0/FVRITE?userID=5c4xxx0c0&objObjCode=PROJ&objID=5c4xxx452

Just swap out the userID, account for the correct object type in objObjCode, and plug in the object's ID.

Enjoy!

If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf
Level 10
May 28, 2021

@William English‚, I'd like to hear more about these "publishing objects" if you can find the time.

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
May 29, 2021

Nerds.

Have a great long weekend <grin>

Regards,

Doug