Custom Field in Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-1199125%22%20slang%3D%22en-US%22%3ECustom%20Field%20in%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1199125%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20currently%20moving%20from%20SharePoint%202010%20to%20online%20but%20blocked%20by%20not%20being%20able%20to%20implement%20a%20custom%20'Document%20Number'%20field%20in%20our%20document%20libraries.%20This%20field%20should%20be%20composed%20of%20the%20Library%20Name%20it's%20in%2C%26nbsp%3B%20Index%20(Meta%20Data%20column)%20and%20some%20other%20existing%20fields.%20So%20it'll%20be%20%5BLibraryName%5D-%5BIndex%5D-%5B...%5D.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20tried%20to%20use%20JSON%20column%20formatting%20to%20accomplish%20this%20but%20the%20library%20name%20and%26nbsp%3B%20fields%20from%20a%20term%20store%20can%20not%20be%20pulled.%20Another%20alternative%20we%20tried%20is%20using%20Flow.%20The%20problem%20with%20that%20approach%20is%20that%20we%20need%20this%20field%20applied%20to%20around%20a%20thousand%20sites%20with%20around%2020%20libraries%20in%20them%20and%20there%20is%20no%20easy%20way%20to%20deploy%20a%20flow%20to%20every%20library%20in%20the%20entire%20sites.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20tried%20doing%20similar%20customization%20before%3F%20We%20are%20all%20new%20to%20SharePoint%20development%20so%20any%20suggestion%20that%20can%20guide%20us%20to%20the%20right%20direction%20is%20appreciated.%20Thank%20you%20for%20your%20time%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EMahi%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1199179%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20Field%20in%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1199179%22%20slang%3D%22en-US%22%3EWhat%20about%20the%20programmatic%20approach%20by%20means%20of%20Webhooks%20or%20Azure%20Functions%20running%20on%20a%20schedule%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1199210%22%20slang%3D%22en-US%22%3ERE%3A%20Custom%20Field%20in%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1199210%22%20slang%3D%22en-US%22%3EThanks%20Juan%2C%20we%20want%20this%20field%20needs%20to%20be%20processed%20on%20every%20document%20upload%20and%20preferably%20with%20very%20minimal%20delay.%20I%20was%20just%20looking%20at%20remote%20event%20receivers.%20If%20there%20is%20no%20simple%20way%20to%20do%20this%2C%20can%20we%20try%20that%3F%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

We are currently moving from SharePoint 2010 to online but blocked by not being able to implement a custom 'Document Number' field in our document libraries. This field should be composed of the Library Name it's in,  Index (Meta Data column) and some other existing fields. So it'll be [LibraryName]-[Index]-[...]. 

 

We tried to use JSON column formatting to accomplish this but the library name and  fields from a term store can not be pulled. Another alternative we tried is using Flow. The problem with that approach is that we need this field applied to around a thousand sites with around 20 libraries in them and there is no easy way to deploy a flow to every library in the entire sites. 

 

Has anyone tried doing similar customization before? We are all new to SharePoint development so any suggestion that can guide us to the right direction is appreciated. Thank you for your time :)

 

Thanks,

Mahi

2 Replies
What about the programmatic approach by means of Webhooks or Azure Functions running on a schedule?
Thanks Juan, we want this field needs to be processed on every document upload and preferably with very minimal delay. I was just looking at remote event receivers. If there is no simple way to do this, can we try that?