As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [alfresco-webscripts]

Web scripts provide a way to write small extensions to Alfresco using JavaScript and FreeMarker.

Filter by
Sorted by
Tagged with
2 votes
1 answer
49 views

Alfresco search by xpath in the javascript console

I've trouble starting to learn how to perform queries in alfresco xpath. I'm working in the alfresco javascript console as a prototipization and for proof of concept. The final goal is to find all ...
Alessandro Carraro's user avatar
0 votes
1 answer
36 views

How to send data from ajax call to Webscript in Alfresco?

I am working with Alfresco Share 5.2 and currently developing new feature. Must say that I am new in Alfresco. I need to get window location by clicking on button in js, to trigger ajax call and to ...
Mike1988B's user avatar
0 votes
1 answer
120 views

Context initialization failed Alfresco

I have Alfresco Community Edition 5.2. The project has been cloned from GitHub repository, and after that I cannot run it. I am getting the following error at catalina.out file: 2023-02-02 13:16:49,...
Mike1988B's user avatar
0 votes
0 answers
35 views

how to implement pop up custom error message using throw new error inside workflow other than start event in alfresco version 7.0 and up

The problem here is that when using alfresco version 6 the use of throw new error is able to be used as a validation method inside of a workflow, the use of throw new error here is enabling us to pop ...
prosia AKR's user avatar
0 votes
0 answers
74 views

Freemarker TemplateModelException src parameter missing in template

Running the Alfresco AIO archetype default project, SDK version 4.0.0-beta-1 Testing the share modifications I bump into following error on the sample-page: 2022-12-01 09:58:45,588 ERROR [freemarker....
Tim steenbeke's user avatar
0 votes
1 answer
20 views

How to extract the text from (bs4.element.Tag)

How can I extract the "Data Engineer" text from <a class="jobTitle-link" href="/job/Data-Engineer/861664201/">Data Engineer</a> Sample Code should be fine.
Behruam A's user avatar
0 votes
0 answers
58 views

Alfresco - ADF - modify list value of adf-content-metadata-card

I want to modify one of the properties in adf-content-metadata-card , for example in order to modify a property of type "text" adf suggests for me a textbox, for my case if the user would ...
Vikash Patel's user avatar
  • 1,330
0 votes
0 answers
118 views

web-script Alfresco for getting list of noderef with given aspect

Alfresco 5.1 Enterprise. I have JS-script: var def = { query: 'ASPECT:"cont:overdue" AND ASPECT:"cont:subject"', language: "fts-alfresco" }; var nodes = search....
ERemarque's user avatar
  • 497
0 votes
0 answers
17 views

Find list of unencrypted nodes from Alfresco Content store

I have tried to query my DB to find nodes that are unencrypted that are not in alf_content_url_encryption. Due to the large volume of data (in the millions) it has returned an error. I am looking to ...
ynyn's user avatar
  • 1
0 votes
0 answers
17 views

how can i add a event to calendar from email task using html in Alfresco process services?

I want to add a event from html body (email task ) to my calendar using the date entered in date&time field on form am using alfresco process services I will be happy for your help
imrane asrir's user avatar
0 votes
0 answers
37 views

How to check if NodeRef has created Association in Alfresco?

I want to check if NodeRef has association created? The code is like this: this.nodeService.createAssociation(mainDocument, sanitizedDocument, ContentModel.ASSOC_ATTACHMENTS); this.nodeService....
Mike1988B's user avatar
0 votes
0 answers
52 views

Is it possible to copy the version history of NodeRef in Alfresco?

I am new in Alfresco, hope someone could explain to me some open questions that I have. Imagine that we have one base NodeRef. What if I create a duplicates (copies) of that base Node. Can we copy all ...
Mike1988B's user avatar
0 votes
1 answer
276 views

How to get NodeRef of specific folder in Alfresco share using javascript?

I am working on Alfresco project for some time. This is my first time facing Alfresco, so the help will be useful. I need to get a nodeRef of specific folder from one site using JavaScript. I have not ...
Mike1988B's user avatar
0 votes
0 answers
96 views

How to solve Invalid property value in Alfresco

I have introduced two new fields inside Alfresco using Model manager, those fields are List of values. After I run the application, and try to edit a file that contains those fields I get this: The ...
Mike1988B's user avatar
0 votes
1 answer
214 views

How can I wrap parameter value in URL to include parameter separator

I am working on project in alfresco, and need to send a value as a keyword to do the search. Now, my question is, can I wrap that value somehow to include & separator also? My URL looks like: ...
Mike1988B's user avatar
0 votes
1 answer
301 views

How to connect to alfresco using Alfresco api?

I'm following this tutorial: https://www.alfresco.com/abn/adf/docs/tutorials/working-with-data-table/ here is my mydatatable.component.ts import { Component, OnInit } from '@angular/core'; import { ...
Mohamde amine Karek's user avatar
-1 votes
1 answer
84 views

Cannot WebScrape text from image link

I cannot able to webscrape rating percentage from amazon product page. I am getting only null values. Here is my code from typing import Text from bs4 import BeautifulSoup import requests import ...
Raj pradeep's user avatar
0 votes
0 answers
96 views

Alfresco CC'd email recipient never added with MailActionExecuter (Java workflow webscript and ActionService)

I'm trying to determine where the error may be with my current attempt at sending emails from an Alfresco Java workflow task (TaskCreateListener). It all seems to work fine, however when adding a CC ...
StephenL's user avatar
  • 122
0 votes
1 answer
342 views

Alfresco Document download url not working

I have a fresh-installed Alfresco Community v6.1.1. I need to be able to share a folder (and its files). I understand no such feature is available stock from Alfresco Share, and thus, I downloaded and ...
Yann Lézy's user avatar
1 vote
0 answers
235 views

Alfresco content search inside current folders or it's childs

I want to customize Alfresco share in such a way, where I can search contents from specific folder or it's child folders only. If I am searching document inside XYZ folder of particular site the it ...
Deepak Talape's user avatar
0 votes
1 answer
143 views

Alfresco V5.2 - How to get current page url in a live search webscript

In the search part, I need the search to be limited only to the current directory or location of the user. Suppose, if I am in a directory on a specific site, just search from there down the directory ...
Himanshu Kapoor's user avatar
1 vote
1 answer
835 views

Dockerized Alfresco CORS filter

I have a dockerized Alfresco 6.2 community version, clean for now, up and running correctly in my AWS server. I can use it ang log in into share. Now I want to add my custom app, writtein in Vue.js, ...
Fjordo's user avatar
  • 768
0 votes
2 answers
209 views

Alfresco REST Core API update Version metadatas

I want to update the metadata of a specific version of a file in Alfresco. How can I update node version metadatas using Alfresco REST API ? In This endPoint : [ base url: /alfresco/api/-default-/...
CHHIBI AMOR's user avatar
  • 1,186
-1 votes
1 answer
190 views

Alfresco Dictionary add a lot of data using javascript

I have a dictionary nodeRef that i know. I need to fill this dictionary with a lot of values, this values have to be imported by hand or using javascript console. Is there a way using javascript ...
john2994's user avatar
  • 353
0 votes
2 answers
167 views

companyhome not defined error in bundle service *.post.js file in Alfresco Share

I have a custom service /hayts the processes file uploads and metadata. the same files work when following the MultiPart Forms Tutorial. However, when I bundle the files into My Share application. I ...
Raystorm's user avatar
  • 6,100
0 votes
1 answer
156 views

Custom Alfresco Model with UUID default value

I want to add a new property to the alfresco model which will have the node-uuid as default value. <type name="nemo:Pdossier"> <title>Dossier Nemo</title> ...
CHHIBI AMOR's user avatar
  • 1,186
1 vote
1 answer
276 views

How to hide/show sets in [alfresco] form control

I want to how i can hide this 'set' if its field is empty and show this set if its field has any value. <config evaluator="task-type" condition="vorwf:allocateDocumentProperties"...
Ailton Dcc's user avatar
1 vote
1 answer
102 views

Alfresco - Calendar event using server-side javascript

How to create calendar event using server-side javascript code?
Sanjay's user avatar
  • 2,471
0 votes
1 answer
95 views

Alfresco folder rule to create publicly sharable link for the children

I am using Enterprise Alfresco. I want to have a rule on my folder that will create a publicly shareable link whenever a new document created in the folder. The sharable should be the same as what we ...
Sam's user avatar
  • 2,952
0 votes
1 answer
100 views

How to access document properties from a webscript in Alfresco?

I am using Alfresco Enterprise 6.2. I want to restrict a document upload and display a pop up message if a document title contain a certain text. I have looked at upload.post.js and could not see ...
SkyBlue's user avatar
  • 267
1 vote
0 answers
140 views

I want to audit search parameters used in alfresco search form

I want to audit search parameters used in alfresco search form. I am using version : Alfresco Enterprise v5.1.1 If i search jbong then in alfresco log i want to see something like this: /alfresco-api/...
madhepurian's user avatar
0 votes
1 answer
228 views

alfresco files thumbnail view not appearing

Hi I am new to alfresco and trying to fix a prod issue, all of a sudden files(mostly jpeg/png) uploaded earlier(before 1 months) cannot be viewed under folder and it is showing as empty folder. but ...
kishorre's user avatar
0 votes
1 answer
375 views

How do I setup/edit Alfresco Source Code from the Github Repo

im completely new to working with open-source software and at the moment I am very lost. I understand that the source code is located in the Alfresco repo on Github(https://github.com/Alfresco). What ...
Jimmy Crane's user avatar
0 votes
1 answer
88 views

Site and Object mapping is not working after Salesforce and Alfresco integration

I have integrated Alfresco with Salesforce using Salesforce content connector app, and I am also able to see all Alfresco repository contents in Salesforce, but I am not able to do Site and Object ...
Deepak Talape's user avatar
1 vote
1 answer
234 views

Getting a pdf for an Alfresco Java Webscript Controller

I'm trying to build a simple Webscript Endpoint in Alfresco that gets a pdf using a Java Webscript controller. We eventually want to expand this endpoint to take multiple pdfs and do some manipulation,...
Alex Parker's user avatar
1 vote
2 answers
182 views

How to correctly customise search.get.js in Alfresco?

I'm using Alfresco Enterprise 6.2. Actual changes I need to make belongs to the search.lib.js This is an import in the search.get.js. I tried modifying search.lib.js itself and had no effect. So I ...
BlueStar's user avatar
  • 391
6 votes
1 answer
179 views

How to create a search Action in Alfresco

I am using Alfresco Enterprise 6.2. Similar to the live search, I am creating a search Action for folders that I have in document library. I have updated the custom-actions.js as follows: ...
SkyBlue's user avatar
  • 267
0 votes
1 answer
304 views

How to attach a file to emails? Alfresco

How do I attach files (for example, workflow packageItems files) to an email? I tried to use this code, but the files are not being attached. What am I doing wrong? How to attach a file to the email? ...
Gercio_J's user avatar
0 votes
0 answers
114 views

How to limit the Alfresco query result set to Top-N rows only

I need how to get 20 records out of 100 from alfresco in java. Query: +@cm\:categories:"*categoryId*"+TYPE:"{http://www.alfresco.org/model/content/1.0}content Here In this categoryId 100 records in ...
Rajesh Chowdary's user avatar
0 votes
1 answer
92 views

Is there any way to configure the QR code scan & store it's data in alfresco repository

Is alfresco content service provides support to scan the QR code in share or via any third-party tool support for it? If yes then please share some steps to achieve it. Thanks in advance.
Khushbu Watwani's user avatar
0 votes
1 answer
212 views

Alfresco - Aikau Custom Action

I want add custom action in alfresco aikau search page. I have created extension module. <extension> <modules> <module> <id>Custom Action In Search Result Page</...
Sanjay's user avatar
  • 2,471
0 votes
1 answer
88 views

Assigning content store using JAVA API

I had posting in alfresco hub , couldnt get solution yet. I was trying to convert javascript API code to java API which move files to different content store(' storeB'). We have storeB ...
Brijesh N K's user avatar
1 vote
2 answers
271 views

Getting exception - issue Caused by: java.lang.IllegalArgumentException: clientName is a mandatory parameter?

I have implemented this https://github.com/FlexSolution/AlfrescoResetPassword Only taken the code of alfresco - I have angular as front end When I request for password reset it's giving me ...
Vikash Patel's user avatar
  • 1,330
-1 votes
1 answer
805 views

Logger configuration in Alfresco

Is there a specific onfiguration for logger to print log.info() message ? I have action classes extended quatz class as shown below . but the log is not printing out in log file - alfresco.log . ...
Brijesh N K's user avatar
0 votes
1 answer
955 views

Bulk export of Alfresco content

We are planning to large amount of folders (sites) within Alfresco into a local disk. I have been going through a lot of similar questions and tutorials but can't seem to understand how to initiate a ...
Tameem's user avatar
  • 1
1 vote
1 answer
134 views

Creating tags in subfolder when adding a new tag on the parent folder

So im trying to add new tags on my subfolders/files when updating or adding a new tag on the parent folder, im using this code but the tagNodeRef seems to not have the correct information, i cant ...
Jose Antonio Garcia Panadero's user avatar
1 vote
0 answers
151 views

Remove all workflow instances in Alfresco 5.1

I'm purging all unused content on old server Alfresco 5.1. Now in Alfresco database is about 15 000 completed and active workflows associated with documents. I would find out how to remove these ...
ERemarque's user avatar
  • 497
0 votes
1 answer
403 views

Setting the value of protection days for jobs 'ContentStoreCleanerTrigger' and 'NodeServiceCleanupTrigger' in Alfresco 5.1?

I have Alfresco 5.1 server with some unused content in repository and old workflow instances. I'm going to remove this content with UI Alfresco Share/scripts. The clean repo will used as template ...
ERemarque's user avatar
  • 497
1 vote
0 answers
499 views

Alfresco creating PDF rendition from PPTX File

I'm POSTing to /alfresco/api/-default-/public/alfresco/versions/1/nodes/c31b9572-7d9e-4b50-a2ae-62b69c156cd3/renditions with the body {"id":"pdf"} and getting a 400 error back: {"error":{"errorKey":"...
daniel0mullins's user avatar
0 votes
1 answer
459 views

Upload file size limit with custom webscript on Alfresco Community 5.2

I need help to upload document content back in Alfresco Community 5.2 though a share javascript. The destination noderef is already existing, I upload a new version of a document. I can't use the api/...
Fjordo's user avatar
  • 768

1
2 3 4 5
8