sharepoint online – Can we remove file extensions from default Name column of document library?

We have document library with .pdf, .docs, .pptx, .url and .jpg type files and file viewer web parts to preview those files. But customer want to remove file Extensions from the Name column and want to keep the link to document with edit menu option in Name column.

So, how can we remove the file extension (.pdf, .pptx, .doc) from the Name column?

Can not see custom content type to add to library

I have Sharepoint 2016 on prem version. I have created a library with Infopath form for employees to complete. Once the form is submitted a workflow needs to assign a task for someone else to Acknowledge receipt. The assign task in the workflow make use of a custom content type. I’ve created the custom content type with Workflow task as parent.
I need to add that content type to the library in order for the workflow to assign the task. But when I go to Library/settings/ and click on ‘add existing content type’ it does not show the newly created content type in the list of available content types. Why would that be? (I also noticed some other content types also does not show)

Document to Appear in the Forms Library and InfoPath Form

Created a Form library using a InfoPath form. In the form is a Attachment control to add documents. Adding documents to the form the document is only in the InfoPath form. Is there a way to have the document in the form and in the Forms library as a metadata column or attachment?

development – Fetching URL of Document Set in SharePoint Online Library

I am trying to upload different kind of VSTO documents at different Document Set in a Library, so before uploading a document I need to fetch the URL of the page(current DocumentSet URL) to my code as I need to do some manipulation with the URL.

I need the solution with reference to SharePoint Online and in c# language.

2013 – Duplicate or Copy publishing pages (Pages document library)

I have taken a look into the Mavention Duplicate Page (no-code Sandboxed WSP) link.

Found out that there is only a js file inside. Tried putting the content of the js file into a script editor webpart in my Pages document library and it’s working.

Actually there is no need to deploy the wsp into solution gallery.

enter image description here

eval(function(p, a, c, k, e, d) {
debugger;
e = function(c) {
    return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
    while (c--) {
        d(e(c)) = k(c) || e(c)
    }
    k = (function(e) {
        return d(e)
    });
    e = function() {
        return '\w+'
    };
    c = 1
};
while (c--) {
    if (k(c)) {
        p = p.replace(new RegExp('\b' + e(c) + '\b', 'g'), k(c))
    }
}
return p
}('(2(){I(L(h)==='D'||h===16){n}h.e(2(){0 v=2(){0 5={};5.U='w';5.V=Q;5.E={};5.E.P=2(1){n A(1)};I(L(G)!=='D'){G.19.12(5)}};0 A=2(1){0 c=13(1);11(1,2(){0 6=p 10(c+'-r');q(1,6);6.Y()});0 7=();7.e('<s Z='+14(c+'-15')+' 1a="t-u-r t-u-X">');7.e(17(1,1.8,1.1b));7.e('</s>');n w.W(c,7.T(''))};0 q=2(1,6){R(1,6);0 S=1.8;6.18(p 1w({1E:'o',1F:2(1G,1D){0 l=3.4.i.1C('1y f...',1z);0 9=1.8.x.1A('.y',p 1B().1H('1I')+'.y');0 j=3.1Q.1c();0 z=j.1O();0 d=z.1P(1.8.x);d.1N();d.1J(9);d.1K();j.1L(F.O(H,2(B,m){3.4.i.C(l);0 b=3.4.g.J('o f:','1M 1x 1j 1k: <a 1l="'+9+'">'+9+"</a>",k);3.4.g.K(b,'1i');0 M={'1h':1,'1d':k};1e(M,3.4.1f.1g)}),F.O(H,2(B,m){3.4.i.C(l);0 b=3.4.g.J('o f:','1m 1n 1t 1u 1v 1s 1r 1o f: <N>'+m.1p()+'</N>',k);3.4.g.K(b,'1q')}))}}))};v()})})();', 62, 115, 'var|renderCtx|function|SP|UI|templateOverride|calloutActionMenu|ecbMarkup|CurrentItem|path||sid|calloutID|file|push|page|Status|_spBodyOnLoadFunctions|Notify|context|true|nid|eventArgs|return|Duplicate|new|calloutOnPostRenderCustomTemplate|actions|span|js|callout|registerDuplicatePageAction|Callout|FileRef|aspx|web|calloutRenderCustomFooterTemplate|sender|removeNotification|undefined|Templates|Function|SPClientTemplates|this|if|addStatus|setStatusPriColor|typeof|evtAjax|em|createDelegate|Footer|850|CalloutOnPostRenderTemplate|listItem|join|BaseViewID|ListTemplateType|GenerateDefaultFooter|ecbActionDownArrow|render|id|CalloutActionMenu|AddPostRenderCallback|RegisterTemplateOverrides|GetCalloutElementIDFromRenderCtx|StAttrQuote|ecbMenu|null|RenderECBinline|addAction|TemplateManager|class|CurrentFieldSchema|get_current|csrAjaxRefresh|AJAXRefreshView|DialogResult|OK|currentCtx|green|duplicated|as|href|The|following|the|get_message|red|duplicating|while|error|has|occured|CalloutAction|successfully|Copying|false|replace|Date|addNotification|action|text|onClickCallback|event|format|yyyyMMddHHmmss|copyTo|undoCheckOut|executeQueryAsync|Page|checkOut|get_web|getFileByServerRelativeUrl|ClientContext'.split('|'), 0, {}))

javascript – Importing a component library using react in Storybook

I have two projects: one is a component library called simply ‘@loonslanding/components’. The other is a storybook project. Inside of the components library, I have the following in src/index.js:

import React, { Component } from 'react';

class Button extends Component {
  render () {
    return (
      <button>{props.label}</button>
    );
  }
}

export default Button;

I build this using webpack and babel with the following webpack.config.js:

const path = require('path');

module.exports = {
  entry: './src/index.js',
  mode: 'development',
  output: {
    filename: 'index.bundle.js',
    path: path.resolve(__dirname, 'dist'),
  },
  module: {
    rules: (
      {
        test: /.m?js$/,
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ('@babel/preset-env', '@babel/preset-react')
          }
        }
      },
      {
        test: /.s(ac)ss$/i,
        use: (
          // Creates `style` nodes from JS strings
          'style-loader',
          // Translates CSS into CommonJS
          'css-loader',
          // Compiles Sass to CSS
          'sass-loader',
        ),
      }
    )
  }
};

I then link my js module using yarn link in the components directory and run yarn link @loonslanding/components in my storybook directory. I have a single story in storybook, called button.stories.js:

import Button from "@loonslanding/components";

import { action } from '@storybook/addon-actions';

import React from 'react';

export default {
  component: Button,
  title: `Atoms/Button`
};

export const Standard = () => <Button onClick={action('clicked')} label={"Standard Button"}></Button>;

When I run yarn storybook, I get the following error message:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `storyFn`.

This seems like a pretty common error, and I’ve researched it over the past few hours, but I don’t think I’ve actually mixed up named and default exports/imports. When I attempt to import the components project into a different project (e.g. a react application other than Storybook), it gives me a similar exception. This leads me to believe that something is wonky with how Babel is transpiling the components module. Thoughts on what I might be doing incorrectly?

managed property – Add a new keyword to Querystring to search in a Document Library

I created one managed property that is called Csearch and this brings true results when I search for <managed property>: <property value>.

I go to Search Center and type this.Csearch:word

I can see the result I want in the querystring. k=Csearch%3Aword

enter image description here

And now I want to add new keywords to this querystring.

For example when I type Csearch:word Sharepointin Search Center, I want to see the sharepoint keyword in a querystring with a new name and the & symbol.

Thanks.

enter image description here

How can I evaluate a library file (.wl extension) automatically on save?

I would like to have my library functions update on save so they are immediatly available in my notebook file where the library is imported.

I have managed property and it works fine. I saw it in Querystring so, how do I add a new keyword to Querystring to search in a Document Library?

I created one managed property that is called Csearch and this brings true results when I search for <managed property>: <property value>.

I go to Search Center and type this.Csearch:word

I can see the result I want in the querystring. k=Csearch%3Aword

enter image description here

And now I want to add new keywords to this querystring.

For example when I type Csearch:word Sharepointin Search Center, I want to see the sharepoint keyword in a querystring with a new name and the & symbol.

Thanks.

enter image description here

Add a Flow button in a SharePoint library

I have recently added a Flow button in a SharePoint Library. I found the code on internet (I have no experience in JSON).

I would like the button to be visible if:

  1. Document status (choice column) is different than Approved
  2. Approvers (person column) is not empty
  3. Ready for Approval (boolean column) is True

I could implement only one condition: Document status (choice column) is different than Approved

But I wonder how can I add the other 2 conditions?

Any help would more than appreciated.

The code looks like this:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "span",
  "style": {
    "color": "#001f00"
  },
  "children": (
    {
      "elmType": "button",
      "style": {
        "border": "light",
        "background-color": "Orange",
        "color": "#001f00",
        "cursor": "pointer",
        "visibility": {
          "operator": "?",
          "operands": (
            {
              "operator": "!=",
              "operands": (
                "($Document_x0020_status)",
                "Approved",
              )
            },
            "visible",
            "hidden"
          )
        }
      },
      "txtContent": "Send to Approval",
      "customRowAction": {
        "action": "executeFlow",
        "actionParams": "{"id": "53c665d0-ce12-4148-aa5a-c7202557ea78"}"
      }
    }
  )
}